diff options
author | Cameron Zwarich <zwarich@apple.com> | 2011-05-25 04:45:27 +0000 |
---|---|---|
committer | Cameron Zwarich <zwarich@apple.com> | 2011-05-25 04:45:27 +0000 |
commit | 106acd4158768ff1948accc654a1892caa9e010b (patch) | |
tree | 2b81e1828582561a94e23da8fdffd07e85f8789e /test/CodeGen | |
parent | 328634598fb8dbb774709aebc61a97d63f7027b3 (diff) | |
download | external_llvm-106acd4158768ff1948accc654a1892caa9e010b.zip external_llvm-106acd4158768ff1948accc654a1892caa9e010b.tar.gz external_llvm-106acd4158768ff1948accc654a1892caa9e010b.tar.bz2 |
Make tTAILJMPr/tTAILJMPrND emit a tBX without a preceding MOV of PC to LR. This
fixes <rdar://problem/9495913>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132042 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r-- | test/CodeGen/ARM/call-tc.ll | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/call-tc.ll b/test/CodeGen/ARM/call-tc.ll index 2f3e02b..c460f7a 100644 --- a/test/CodeGen/ARM/call-tc.ll +++ b/test/CodeGen/ARM/call-tc.ll @@ -16,6 +16,10 @@ define void @t1() { define void @t2() { ; CHECKV6: t2: ; CHECKV6: bx r0 @ TAILCALL +; CHECKT2D: t2: +; CHECKT2D: ldr +; CHECKT2D-NEXT: ldr +; CHECKT2D-NEXT: bx r0 @ TAILCALL %tmp = load i32 ()** @t ; <i32 ()*> [#uses=1] %tmp.upgrd.2 = tail call i32 %tmp( ) ; <i32> [#uses=0] ret void |