mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-10-31 09:11:13 +00:00
4cda190ef5
Fix test syntax per new rules. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36133 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
569 B
Plaintext
16 lines
569 B
Plaintext
; The old instruction selector used to load all arguments to a call up in
|
|
; registers, then start pushing them all onto the stack. This is bad news as
|
|
; it makes a ton of annoying overlapping live ranges. This code should not
|
|
; cause spills!
|
|
;
|
|
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -stats |& not grep spilled
|
|
|
|
target endian = little
|
|
target pointersize = 32
|
|
|
|
int %test(int, int, int, int, int, int, int, int, int, int) { ret int 0 }
|
|
int %main() {
|
|
%X = call int %test(int 1, int 2, int 3, int 4, int 5, int 6, int 7, int 8, int 9, int 10)
|
|
ret int %X
|
|
}
|