aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/sibcall.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2010-03-26 16:26:03 +0000
committerEvan Cheng <evan.cheng@apple.com>2010-03-26 16:26:03 +0000
commit2c12cb47d95ff40f02951344ffee6bfd6ee6e900 (patch)
tree232400ececa6bbbed56911f21be1d593a837fed7 /test/CodeGen/X86/sibcall.ll
parent3c262eec5354766bab7b37efc8d203a7afe91458 (diff)
Do not sibcall if stack needs to be dynamically aligned.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99620 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/sibcall.ll')
-rw-r--r--test/CodeGen/X86/sibcall.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/X86/sibcall.ll b/test/CodeGen/X86/sibcall.ll
index 541e7506b8..8e52a7cbfe 100644
--- a/test/CodeGen/X86/sibcall.ll
+++ b/test/CodeGen/X86/sibcall.ll
@@ -302,3 +302,14 @@ entry:
}
declare double @bar6(...)
+
+define void @t19() alignstack(32) nounwind {
+entry:
+; CHECK: t19:
+; CHECK: andl $-32
+; CHECK: call {{_?}}foo
+ tail call void @foo() nounwind
+ ret void
+}
+
+declare void @foo()