Fix PR3335 by not turning a store to one address space into a store to another.
[oota-llvm.git] / test / Transforms / ConstProp / 2006-12-01-TruncBoolBug.ll
index c7b2c6fa6d2a71a0d365ad643fe50ec5cf99e950..889ef56bf9c6e6dbccc747231c190990bdb05cb0 100644 (file)
@@ -1,5 +1,7 @@
-; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep 'ret bool false'
-bool %test() {
-  %X = trunc uint 320 to bool
-  ret bool %X
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis | \
+; RUN:   grep {ret i1 false}
+define i1 @test() {
+        %X = trunc i32 320 to i1                ; <i1> [#uses=1]
+        ret i1 %X
 }
+