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 7ab14366eb51708b7c268dc480fff6ae48dc0c7c..ede1a32c5f7adbc3dc007bacfe3a74ca4bbe1e28 100644 (file)
@@ -1,6 +1,8 @@
-; RUN: llvm-as < %s | opt -sccp | llvm-dis | 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
 }
+