Fix PR10103: Less code for enum type translation.
[oota-llvm.git] / test / Transforms / ConstProp / 2006-12-01-TruncBoolBug.ll
index c7b2c6fa6d2a71a0d365ad643fe50ec5cf99e950..e46a875a7cfad9bd8aa338bd7562dd3d3b0a35f4 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: opt < %s -instcombine -S | \
+; RUN:   grep {ret i1 false}
+define i1 @test() {
+        %X = trunc i32 320 to i1                ; <i1> [#uses=1]
+        ret i1 %X
 }
+