X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FCodeGen%2FX86%2Floop-strength-reduce2.ll;h=a83503c7fe7b798f9fe30a52460b626e916ae934;hb=5f50442d79df229027a8c5eda0d56f7a9cd55757;hp=a1f38a7edc02862fd381f81d22dd4848bce9208c;hpb=36a0947820fd4aa4b8a5fa26e3f079bdf572bc81;p=oota-llvm.git diff --git a/test/CodeGen/X86/loop-strength-reduce2.ll b/test/CodeGen/X86/loop-strength-reduce2.ll index a1f38a7edc0..a83503c7fe7 100644 --- a/test/CodeGen/X86/loop-strength-reduce2.ll +++ b/test/CodeGen/X86/loop-strength-reduce2.ll @@ -1,10 +1,11 @@ -; RUN: llc < %s -mtriple=i686-apple-darwin -relocation-model=pic | grep {\$pb} | grep mov +; RUN: llc < %s -mtriple=i686-apple-darwin -relocation-model=pic | FileCheck %s ; ; Make sure the PIC label flags2-"L1$pb" is not moved up to the preheader. +; CHECK: mov{{.}} {{.*}}$pb @flags2 = internal global [8193 x i8] zeroinitializer, align 32 ; <[8193 x i8]*> [#uses=1] -define void @test(i32 %k, i32 %i) { +define void @test(i32 %k, i32 %i) nounwind { entry: %k_addr.012 = shl i32 %i, 1 ; [#uses=1] %tmp14 = icmp sgt i32 %k_addr.012, 8192 ; [#uses=1] @@ -17,7 +18,7 @@ bb: ; preds = %bb, %entry %tmp.16 = add i32 %tmp.15, %tmp. ; [#uses=2] %k_addr.0.0 = bitcast i32 %tmp.16 to i32 ; [#uses=1] %gep.upgrd.1 = zext i32 %tmp.16 to i64 ; [#uses=1] - %tmp = getelementptr [8193 x i8]* @flags2, i32 0, i64 %gep.upgrd.1 ; [#uses=1] + %tmp = getelementptr [8193 x i8], [8193 x i8]* @flags2, i32 0, i64 %gep.upgrd.1 ; [#uses=1] store i8 0, i8* %tmp %k_addr.0 = add i32 %k_addr.0.0, %i ; [#uses=1] %tmp.upgrd.2 = icmp sgt i32 %k_addr.0, 8192 ; [#uses=1]