aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/ConstProp/2006-12-01-TruncBoolBug.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/ConstProp/2006-12-01-TruncBoolBug.ll')
-rw-r--r--test/Transforms/ConstProp/2006-12-01-TruncBoolBug.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Transforms/ConstProp/2006-12-01-TruncBoolBug.ll b/test/Transforms/ConstProp/2006-12-01-TruncBoolBug.ll
new file mode 100644
index 0000000..e46a875
--- /dev/null
+++ b/test/Transforms/ConstProp/2006-12-01-TruncBoolBug.ll
@@ -0,0 +1,7 @@
+; RUN: opt < %s -instcombine -S | \
+; RUN: grep {ret i1 false}
+define i1 @test() {
+ %X = trunc i32 320 to i1 ; <i1> [#uses=1]
+ ret i1 %X
+}
+