summaryrefslogtreecommitdiffstats
path: root/test/Transforms/InstCombine/2004-08-10-BoolSetCC.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/InstCombine/2004-08-10-BoolSetCC.ll')
-rw-r--r--test/Transforms/InstCombine/2004-08-10-BoolSetCC.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/2004-08-10-BoolSetCC.ll b/test/Transforms/InstCombine/2004-08-10-BoolSetCC.ll
new file mode 100644
index 0000000..1154bb4
--- /dev/null
+++ b/test/Transforms/InstCombine/2004-08-10-BoolSetCC.ll
@@ -0,0 +1,8 @@
+; RUN: opt < %s -instcombine -S | \
+; RUN: grep {ret i1 false}
+
+define i1 @test(i1 %V) {
+ %Y = icmp ult i1 %V, false ; <i1> [#uses=1]
+ ret i1 %Y
+}
+