2009-09-09 01:54:48 +02:00
|
|
|
; RUN: llc < %s -march=x86 -x86-asm-syntax=intel | \
|
2007-07-31 22:11:57 +02:00
|
|
|
; RUN: grep {mov EDX, 1}
|
2005-05-13 01:09:04 +02:00
|
|
|
; check that fastcc is passing stuff in regs.
|
|
|
|
|
2007-02-28 19:35:36 +01:00
|
|
|
declare x86_fastcallcc i64 @callee(i64)
|
2006-03-19 00:48:54 +01:00
|
|
|
|
2007-02-28 19:35:36 +01:00
|
|
|
define i64 @caller() {
|
2007-11-18 19:26:45 +01:00
|
|
|
%X = call x86_fastcallcc i64 @callee( i64 4294967299 ) ; <i64> [#uses=1]
|
2007-02-28 19:35:36 +01:00
|
|
|
ret i64 %X
|
2005-05-13 01:09:04 +02:00
|
|
|
}
|
|
|
|
|
2007-02-28 19:35:36 +01:00
|
|
|
define x86_fastcallcc i64 @caller2(i64 %X) {
|
|
|
|
ret i64 %X
|
2005-05-13 01:09:04 +02:00
|
|
|
}
|
2007-02-28 19:35:36 +01:00
|
|
|
|