summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/2008-11-08-InstCombineSelect.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGen/2008-11-08-InstCombineSelect.c')
-rw-r--r--clang/test/CodeGen/2008-11-08-InstCombineSelect.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/clang/test/CodeGen/2008-11-08-InstCombineSelect.c b/clang/test/CodeGen/2008-11-08-InstCombineSelect.c
new file mode 100644
index 0000000..3f4428e
--- /dev/null
+++ b/clang/test/CodeGen/2008-11-08-InstCombineSelect.c
@@ -0,0 +1,17 @@
+// RUN: %clang_cc1 %s -emit-llvm -O2 -o -
+// PR3028
+
+int g_187;
+int g_204;
+int g_434;
+
+int func_89 (void)
+{
+ return 1;
+}
+
+void func_20 (int p_22)
+{
+ if (1 & p_22 | g_204 & (1 < g_187) - func_89 ())
+ g_434 = 1;
+}