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