Move & restructure test per review.
[oota-llvm.git] / test / CodeGen / X86 / loop-strength-reduce.ll
index 7cdc4492ab38c4db4be2fe934693d4b11c3e753d..873710112b6801868fab4b050b5d485908abc386 100644 (file)
@@ -1,11 +1,12 @@
-; RUN: llvm-as < %s | llc -march=x86 | \
-; RUN:   grep {A(} | count 1
+; RUN: llvm-as < %s | llc -march=x86 -relocation-model=static | \
+; RUN:   grep {A+} | count 2
 ;
-; Make sure the common loop invariant _A(reg) is hoisted up to preheader.
+; Make sure the common loop invariant A is not hoisted up to preheader,
+; since it can be subsumed into the addressing mode in all uses.
 
 @A = internal global [16 x [16 x i32]] zeroinitializer, align 32               ; <[16 x [16 x i32]]*> [#uses=2]
 
-define void @test(i32 %row, i32 %N.in) {
+define void @test(i32 %row, i32 %N.in) nounwind {
 entry:
        %N = bitcast i32 %N.in to i32           ; <i32> [#uses=1]
        %tmp5 = icmp sgt i32 %N.in, 0           ; <i1> [#uses=1]