diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-12-19 02:58:14 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-12-19 02:58:14 +0000 |
| commit | 2b43f2df2b91142d55bef8971ff56db635c5b8ba (patch) | |
| tree | 8ca7901b61a990b49e64bf7e976e6192fbc01495 /llvm/test/CodeGen/ARM | |
| parent | 4f5019e670d7b3112a7ec0279abcaa458da7ce88 (diff) | |
| download | bcm5719-llvm-2b43f2df2b91142d55bef8971ff56db635c5b8ba.tar.gz bcm5719-llvm-2b43f2df2b91142d55bef8971ff56db635c5b8ba.zip | |
move this test into the ARM test so that it is only run when the arm backend
is enabled.
llvm-svn: 122163
Diffstat (limited to 'llvm/test/CodeGen/ARM')
| -rw-r--r-- | llvm/test/CodeGen/ARM/phi.ll | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/phi.ll b/llvm/test/CodeGen/ARM/phi.ll new file mode 100644 index 00000000000..29e17c095a7 --- /dev/null +++ b/llvm/test/CodeGen/ARM/phi.ll @@ -0,0 +1,23 @@ +; RUN: llc -march=arm < %s | FileCheck %s +; <rdar://problem/8686347> + +define i32 @test1(i1 %a, i32* %b) { +; CHECK: test1 +entry: + br i1 %a, label %lblock, label %rblock + +lblock: + %lbranch = getelementptr i32* %b, i32 1 + br label %end + +rblock: + %rbranch = getelementptr i32* %b, i32 1 + br label %end + +end: +; CHECK: ldr r0, [r1, #4] + %gep = phi i32* [%lbranch, %lblock], [%rbranch, %rblock] + %r = load i32* %gep +; CHECK-NEXT: bx lr + ret i32 %r +}
\ No newline at end of file |

