aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/and-or-mask.c
diff options
Diffstat (limited to 'validation/optim/and-or-mask.c')
-rw-r--r--validation/optim/and-or-mask.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/validation/optim/and-or-mask.c b/validation/optim/and-or-mask.c
new file mode 100644
index 00000000..46803789
--- /dev/null
+++ b/validation/optim/and-or-mask.c
@@ -0,0 +1,18 @@
+int foo(int a, int b)
+{
+ return ((a & 7) | (b & 3)) & 8;
+}
+
+/*
+ * check-name: and-or-mask
+ * check-command: test-linearize -Wno-decl $file
+ *
+ * check-output-start
+foo:
+.L0:
+ <entry-point>
+ ret.32 $0
+
+
+ * check-output-end
+ */