summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/ConstProp/2006-12-01-TruncBoolBug.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Transforms/ConstProp/2006-12-01-TruncBoolBug.ll')
-rw-r--r--llvm/test/Transforms/ConstProp/2006-12-01-TruncBoolBug.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/Transforms/ConstProp/2006-12-01-TruncBoolBug.ll b/llvm/test/Transforms/ConstProp/2006-12-01-TruncBoolBug.ll
new file mode 100644
index 00000000000..ce66c706488
--- /dev/null
+++ b/llvm/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
+}
+
OpenPOWER on IntegriCloud