mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-03 14:31:10 +00:00
Make sure this is not eligible for tail-call-elimination so that we test
the correct thing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22039 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6972177bd4
commit
b73855bcd4
@ -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…
x
Reference in New Issue
Block a user