aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/and-or-lsr1.c
diff options
Diffstat (limited to 'validation/optim/and-or-lsr1.c')
-rw-r--r--validation/optim/and-or-lsr1.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/validation/optim/and-or-lsr1.c b/validation/optim/and-or-lsr1.c
new file mode 100644
index 00000000..4806d7bc
--- /dev/null
+++ b/validation/optim/and-or-lsr1.c
@@ -0,0 +1,14 @@
+int foo(int a, int b)
+{
+ return ((a & 0xfffff000) | b) >> 12;
+}
+
+/*
+ * check-name: and-or-lsr1
+ * check-command: test-linearize -Wno-decl $file
+ * check-known-to-fail
+ *
+ * check-output-ignore
+ * check-output-pattern(0): and\\.
+ * check-output-pattern(1): or\\.
+ */