aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/lsr-shl0.c
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-08-16 18:10:08 +0200
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-08-16 21:20:40 +0200
commit58480f8a688b2e5152e3b3dc4a92bc3232811e0b (patch)
tree676525770966fc0c1285b6bda59b21bf464f90cc /validation/optim/lsr-shl0.c
parentca6fe3cd626d81cf1c4b96ecc5294598d59aaa75 (diff)
downloadsparse-dev-58480f8a688b2e5152e3b3dc4a92bc3232811e0b.tar.gz
rename testcase for ((x << S) >> S) simplification
The testcase was named with the wrong operation order (inner op first instead of outer-first). Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation/optim/lsr-shl0.c')
-rw-r--r--validation/optim/lsr-shl0.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/validation/optim/lsr-shl0.c b/validation/optim/lsr-shl0.c
new file mode 100644
index 00000000..952baa6b
--- /dev/null
+++ b/validation/optim/lsr-shl0.c
@@ -0,0 +1,14 @@
+unsigned mask(unsigned x)
+{
+ return (x << 15) >> 15;
+}
+
+/*
+ * check-name: lsr-shl0
+ * check-command: test-linearize -Wno-decl $file
+ *
+ * check-output-ignore
+ * check-output-contains: and\\..*0x1ffff
+ * check-output-excludes: lsr\\.
+ * check-output-excludes: shl\\.
+ */