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