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