Fix a FIXME about the format and add a test.
[oota-llvm.git] / test / Transforms / ConstProp / 2006-12-01-TruncBoolBug.ll
index 779f6be2da2d1c521f91696f22aafc95fc353694..ce66c706488da619adf4d2eb5ce051cc3c18d098 100644 (file)
@@ -1,6 +1,7 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
-; RUN:   grep {ret i1 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
 }
+