implement aliases for div/idiv that have an explicit A register operand,
[oota-llvm.git] / test / Analysis / ScalarEvolution / nsw.ll
index 245ed6f36be3b2e1fab0453865aa9828a8d16bc4..456f3f059fe39b7ecdc85f4943137c1c5d243cdd 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -analyze -scalar-evolution -disable-output | grep { -->  {.*,+,.*}<bb>} | count 8
+; RUN: opt < %s -analyze -scalar-evolution | grep { -->  {.*,+,.*}<%bb>} | count 8
 
 ; The addrecs in this loop are analyzable only by using nsw information.
 
@@ -22,7 +22,7 @@ bb:           ; preds = %bb1, %bb.nph
        %tmp6 = sext i32 %i.01 to i64           ; <i64> [#uses=1]
        %tmp7 = getelementptr double* %p, i64 %tmp6             ; <double*> [#uses=1]
        store double %tmp5, double* %tmp7, align 8
-       %tmp8 = nsw add i32 %i.01, 1            ; <i32> [#uses=2]
+       %tmp8 = add nsw i32 %i.01, 1            ; <i32> [#uses=2]
        br label %bb1
 
 bb1:           ; preds = %bb