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