mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
d3b1f6d3e0
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36091 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
380 B
LLVM
16 lines
380 B
LLVM
; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=intel | \
|
|
; RUN: grep {mov EDX, 1}
|
|
; check that fastcc is passing stuff in regs.
|
|
|
|
declare x86_fastcallcc i64 @callee(i64)
|
|
|
|
define i64 @caller() {
|
|
%X = callx86_fastcallcc i64 @callee( i64 4294967299 ) ; <i64> [#uses=1]
|
|
ret i64 %X
|
|
}
|
|
|
|
define x86_fastcallcc i64 @caller2(i64 %X) {
|
|
ret i64 %X
|
|
}
|
|
|