1; RUN: llc -mtriple=arm-eabi -mattr=+v4t %s -o - | FileCheck %s 2; RUN: llc -mtriple=arm-eabi -mattr=+v4t -addr-sink-using-gep=1 %s -o - | FileCheck %s 3 4; <rdar://problem/8686347> 5 6define i32 @test1(i1 %a, i32* %b) { 7; CHECK: test1 8entry: 9 br i1 %a, label %lblock, label %rblock 10 11lblock: 12 %lbranch = getelementptr i32, i32* %b, i32 1 13 br label %end 14 15rblock: 16 %rbranch = getelementptr i32, i32* %b, i32 1 17 br label %end 18 19end: 20; CHECK: ldr r0, [r1, #4] 21 %gep = phi i32* [%lbranch, %lblock], [%rbranch, %rblock] 22 %r = load i32, i32* %gep 23; CHECK-NEXT: bx lr 24 ret i32 %r 25} 26