Use SCEVAddRecExpr::isAffine.
[oota-llvm.git] / test / CodeGen / Alpha / neg1.ll
index 5d6ccd0da5a382dc6757e6f6dda68e8c9cf2be1b..ddaed4a0c6e24ffcba1bb7cedf299175f719aa22 100644 (file)
@@ -1,9 +1,7 @@
 ; Make sure this testcase codegens to the lda -1 instruction
-; RUN: llvm-as < %s | llc -march=alpha | grep '-1'
+; RUN: llvm-as < %s | llc -march=alpha | grep {\\-1}
 
-implementation   ; Functions:
-
-long %bar() {
+define i64 @bar() {
 entry:
-       ret long -1
+       ret i64 -1
 }