mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-30 15:41:12 +00:00
tests: xor peephole optimization regression test
Signed-off-by: Wolfgang Bumiller <wry.git@bumiller.com>
This commit is contained in:
parent
2d4a054440
commit
94c2936bfa
1 changed files with 21 additions and 0 deletions
21
tests/xor-optimized.tmpl
Normal file
21
tests/xor-optimized.tmpl
Normal 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'
|
Loading…
Reference in a new issue