Make sure this is not eligible for tail-call-elimination so that we test
authorChris Lattner <sabre@nondot.org>
Sat, 14 May 2005 23:54:55 +0000 (23:54 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 14 May 2005 23:54:55 +0000 (23:54 +0000)
the correct thing.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22039 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/X86/fast-cc-merge-stack-adj.ll

index c17298646163d452a592eb906a7f6e3dfd2e6fc1..aff5ceedddae81617a88de2857515eed8d7a9a36 100644 (file)
@@ -1,8 +1,9 @@
 ; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=intel -enable-x86-fastcc  | grep 'add %ESP, 8'
 
-declare fastcc void %func(int %X, long %Y)
+declare fastcc void %func(int *%X, long %Y)
 
 fastcc void %caller(int, long) {
-       tail call fastcc void %func(int 1234567890, long 0)
+       %X = alloca int
+       call fastcc void %func(int* %X, long 0)   ;; not a tail call
        ret void
 }