From: Wolfgang Bumiller Date: Sun, 15 Sep 2019 08:27:26 +0000 (+0200) Subject: tests: xor peephole optimization regression test X-Git-Tag: xonotic-v0.8.5~13 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=94c2936bfad224529cf326d539a5cdac0a286183;p=xonotic%2Fgmqcc.git tests: xor peephole optimization regression test Signed-off-by: Wolfgang Bumiller --- diff --git a/tests/xor-optimized.tmpl b/tests/xor-optimized.tmpl new file mode 100644 index 0000000..4ff8365 --- /dev/null +++ b/tests/xor-optimized.tmpl @@ -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'