aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
-rw-r--r--validation/optim/shl-lsr0.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/validation/optim/shl-lsr0.c b/validation/optim/shl-lsr0.c
new file mode 100644
index 00000000..851f6284
--- /dev/null
+++ b/validation/optim/shl-lsr0.c
@@ -0,0 +1,15 @@
+unsigned mask(unsigned x)
+{
+ return (x >> 15) << 15;
+}
+
+/*
+ * check-name: shl-lsr0
+ * check-command: test-linearize -Wno-decl $file
+ * check-known-to-fail
+ *
+ * check-output-ignore
+ * check-output-contains: and\\..*0xffff8000
+ * check-output-excludes: lsr\\.
+ * check-output-excludes: shl\\.
+ */