Conservative fix for PR17827 - don't optimize a shift + and + compare sequence where...
[oota-llvm.git] / test / Transforms / SCCP / 2006-12-19-UndefBug.ll
index 388b9abb29f9e5d72d079a3525558f9b34eabc04..ede1a32c5f7adbc3dc007bacfe3a74ca4bbe1e28 100644 (file)
@@ -1,7 +1,8 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -sccp | llvm-dis | \
-; RUN:   grep 'ret bool false'
+; RUN: opt < %s -sccp -S | \
+; RUN:   grep "ret i1 false"
 
-bool %foo() {
-       %X = and bool false, undef
-       ret bool %X
+define i1 @foo() {
+       %X = and i1 false, undef                ; <i1> [#uses=1]
+       ret i1 %X
 }
+