forked from OSchip/llvm-project
Make sure this is not eligible for tail-call-elimination so that we test
the correct thing. llvm-svn: 22039
This commit is contained in:
parent
5366c859a7
commit
8d1ea49603
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue