tests: xor peephole optimization regression test

Signed-off-by: Wolfgang Bumiller <wry.git@bumiller.com>
This commit is contained in:
Wolfgang Bumiller 2019-09-15 10:27:26 +02:00
parent 2d4a054440
commit 94c2936bfa

21
tests/xor-optimized.tmpl Normal file
View file

@ -0,0 +1,21 @@
I: xor.qc
D: test bitwise xor
T: -execute
C: -std=gmqcc -O3
E: $null
M: 6
M: 8
M: commutative
M: assocative
M: inverse
M: vv: '6 8 6'
M: vf: '15 8 15'
M: vv: '6 8 6'
M: vf: '15 8 15'
M: 100:200 swapped is: 200:100
M: '1 2 3':'4 5 6' swapped is: '4 5 6':'1 2 3'
M: '4 7 6'
M: '4 7 6'
M: '4 7 6'
M: '4 7 6'
M: '4 7 6'