aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/ConstProp/2005-01-28-SetCCGEP.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/ConstProp/2005-01-28-SetCCGEP.ll')
-rw-r--r--test/Transforms/ConstProp/2005-01-28-SetCCGEP.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Transforms/ConstProp/2005-01-28-SetCCGEP.ll b/test/Transforms/ConstProp/2005-01-28-SetCCGEP.ll
new file mode 100644
index 0000000..ee1f251
--- /dev/null
+++ b/test/Transforms/ConstProp/2005-01-28-SetCCGEP.ll
@@ -0,0 +1,13 @@
+; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | \
+; RUN: not grep {ret bool false}
+
+%b = external global [2 x { }]
+
+implementation
+
+bool %f() {
+ ; tmp.2 -> true, not false.
+ %tmp.2 = seteq { }* getelementptr ([2 x { }]* %b, int 0, int 0),
+ getelementptr ([2 x { }]* %b, int 0, int 1)
+ ret bool %tmp.2
+}