new 'cast' miscompilation, reduced from perlbmk by Evan
authorChris Lattner <sabre@nondot.org>
Fri, 1 Dec 2006 19:02:56 +0000 (19:02 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 1 Dec 2006 19:02:56 +0000 (19:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32079 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/ConstProp/2006-12-01-TruncBoolBug.ll [new file with mode: 0644]

diff --git a/test/Transforms/ConstProp/2006-12-01-TruncBoolBug.ll b/test/Transforms/ConstProp/2006-12-01-TruncBoolBug.ll
new file mode 100644 (file)
index 0000000..c7b2c6f
--- /dev/null
@@ -0,0 +1,5 @@
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep 'ret bool false'
+bool %test() {
+  %X = trunc uint 320 to bool
+  ret bool %X
+}