]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
tests: xor peephole optimization regression test
authorWolfgang Bumiller <wry.git@bumiller.com>
Sun, 15 Sep 2019 08:27:26 +0000 (10:27 +0200)
committerWolfgang Bumiller <wry.git@bumiller.com>
Sun, 15 Sep 2019 08:27:26 +0000 (10:27 +0200)
Signed-off-by: Wolfgang Bumiller <wry.git@bumiller.com>
tests/xor-optimized.tmpl [new file with mode: 0644]

diff --git a/tests/xor-optimized.tmpl b/tests/xor-optimized.tmpl
new file mode 100644 (file)
index 0000000..4ff8365
--- /dev/null
@@ -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'