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 | 78d0094e4c91cde903b08fac24b76043ab654967 (patch) | |
tree | 9620e9460be0f98f8897efefef989bff3e429ba6 /test/CodeGen/ARM/phi.ll | |
parent | f399d9d37be35a965934265bebdc46a799f61a4a (diff) |
move this test into the ARM test so that it is only run when the arm backend
is enabled.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122163 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/phi.ll')
-rw-r--r-- | test/CodeGen/ARM/phi.ll | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/phi.ll b/test/CodeGen/ARM/phi.ll new file mode 100644 index 0000000000..29e17c095a --- /dev/null +++ b/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 |