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