summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Thumb2/thumb2-call-tc.ll
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2010-07-08 01:18:23 +0000
committerDale Johannesen <dalej@apple.com>2010-07-08 01:18:23 +0000
commite2289285ae2f054b6a697e1fe49f0eea4f2613c2 (patch)
treec4a7fe7a728f1a382edff47cec46a97323a6e554 /llvm/test/CodeGen/Thumb2/thumb2-call-tc.ll
parente75704369db335e523287ca851eccf3a77b1557a (diff)
downloadbcm5719-llvm-e2289285ae2f054b6a697e1fe49f0eea4f2613c2.tar.gz
bcm5719-llvm-e2289285ae2f054b6a697e1fe49f0eea4f2613c2.zip
Changes to ARM tail calls, mostly cosmetic.
Add explicit testcases for tail calls within the same module. Duplicate some code to humor those who think .w doesn't apply on ARM. Leave this disabled on Thumb1, and add some comments explaining why it's hard and won't gain much. llvm-svn: 107851
Diffstat (limited to 'llvm/test/CodeGen/Thumb2/thumb2-call-tc.ll')
-rw-r--r--llvm/test/CodeGen/Thumb2/thumb2-call-tc.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Thumb2/thumb2-call-tc.ll b/llvm/test/CodeGen/Thumb2/thumb2-call-tc.ll
index fe47e348ab2..24502b0338c 100644
--- a/llvm/test/CodeGen/Thumb2/thumb2-call-tc.ll
+++ b/llvm/test/CodeGen/Thumb2/thumb2-call-tc.ll
@@ -25,3 +25,13 @@ define void @h() {
%tmp.upgrd.2 = tail call i32 %tmp( ) ; <i32> [#uses=0]
ret void
}
+
+define void @j() {
+; DARWIN: j:
+; DARWIN: b.w _f @ TAILCALL
+
+; LINUX: j:
+; LINUX: b.w f @ TAILCALL
+ tail call void @f()
+ ret void
+}
OpenPOWER on IntegriCloud