From 94c2936bfad224529cf326d539a5cdac0a286183 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Sun, 15 Sep 2019 10:27:26 +0200 Subject: [PATCH] tests: xor peephole optimization regression test Signed-off-by: Wolfgang Bumiller --- tests/xor-optimized.tmpl | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/xor-optimized.tmpl 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' -- 2.39.2