aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/sibcall.ll
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2013-08-12 09:45:46 +0000
committerTim Northover <tnorthover@apple.com>2013-08-12 09:45:46 +0000
commit6a4e44f0de6e59d4458e3795c765a9001ba1b87f (patch)
tree4dd83e3e3ca5eb30d9a7a8052b05ef7f361adcdc /test/CodeGen/X86/sibcall.ll
parent674c91bb6e704fecd905a226daef079717e7a8c1 (diff)
downloadexternal_llvm-6a4e44f0de6e59d4458e3795c765a9001ba1b87f.zip
external_llvm-6a4e44f0de6e59d4458e3795c765a9001ba1b87f.tar.gz
external_llvm-6a4e44f0de6e59d4458e3795c765a9001ba1b87f.tar.bz2
Allow compatible extension attributes for tail calls
If the tail-callee and caller give the same bits via the same signext/zeroext attribute then a tail-call should be allowed, since the extension has already been done by the callee. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188159 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/sibcall.ll')
-rw-r--r--test/CodeGen/X86/sibcall.ll6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/CodeGen/X86/sibcall.ll b/test/CodeGen/X86/sibcall.ll
index 7b774f6..589e9ec 100644
--- a/test/CodeGen/X86/sibcall.ll
+++ b/test/CodeGen/X86/sibcall.ll
@@ -106,10 +106,10 @@ declare i32 @bar2(i32, i32, i32)
define signext i16 @t8() nounwind ssp {
entry:
; 32-LABEL: t8:
-; 32: calll {{_?}}bar3
+; 32: jmp {{_?}}bar3
; 64-LABEL: t8:
-; 64: callq {{_?}}bar3
+; 64: jmp {{_?}}bar3
%0 = tail call signext i16 @bar3() nounwind ; <i16> [#uses=1]
ret i16 %0
}
@@ -122,7 +122,7 @@ entry:
; 32: calll *
; 64-LABEL: t9:
-; 64: callq *
+; 64: jmpq *
%0 = bitcast i32 (i32)* %x to i16 (i32)*
%1 = tail call signext i16 %0(i32 0) nounwind
ret i16 %1