X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=test%2FTransforms%2FLoopStrengthReduce%2F2012-07-13-ExpandUDiv.ll;h=80095c3ac154689847d1b838803ece9e969b8240;hp=8bac639ae559d024b3ff62ea756a883e8ec1be48;hb=49c8f7512a37b53bf459e51241935ab4ab67ef38;hpb=2dc50d306752c8672d1543feb88517705cdb25e7 diff --git a/test/Transforms/LoopStrengthReduce/2012-07-13-ExpandUDiv.ll b/test/Transforms/LoopStrengthReduce/2012-07-13-ExpandUDiv.ll index 8bac639ae55..80095c3ac15 100644 --- a/test/Transforms/LoopStrengthReduce/2012-07-13-ExpandUDiv.ll +++ b/test/Transforms/LoopStrengthReduce/2012-07-13-ExpandUDiv.ll @@ -10,19 +10,19 @@ target triple = "x86_64-apple-darwin" @g_3 = global i32 0, align 4 ; Ensure that %div.i.i.us is not hoisted. -; CHECK: @main +; CHECK-LABEL: @main( ; CHECK: for.body.i.i.us: ; CHECK: %div.i.i.i.us ; CHECK: %cmp5.i.i.us define i32 @main() nounwind uwtable ssp { entry: %l_2 = alloca [1 x i32], align 4 - %arrayidx = getelementptr inbounds [1 x i32]* %l_2, i64 0, i64 0 + %arrayidx = getelementptr inbounds [1 x i32], [1 x i32]* %l_2, i64 0, i64 0 store i32 0, i32* %arrayidx, align 4 - %tmp = load i32* @g_3, align 4 + %tmp = load i32, i32* @g_3, align 4 %idxprom = sext i32 %tmp to i64 - %arrayidx1 = getelementptr inbounds [1 x i32]* %l_2, i64 0, i64 %idxprom - %tmp1 = load i32* %arrayidx1, align 4 + %arrayidx1 = getelementptr inbounds [1 x i32], [1 x i32]* %l_2, i64 0, i64 %idxprom + %tmp1 = load i32, i32* %arrayidx1, align 4 %conv.i.i = and i32 %tmp1, 65535 %tobool.i.i.i = icmp ne i32 %tmp, 0 br label %codeRepl