blob: dc88015dd16573e3acbc4227e0c1cbfc687c2153 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=intel | \
2; RUN: grep {mov EDX, 1}
3; check that fastcc is passing stuff in regs.
4
5declare x86_fastcallcc i64 @callee(i64)
6
7define i64 @caller() {
8 %X = callx86_fastcallcc i64 @callee( i64 4294967299 ) ; <i64> [#uses=1]
9 ret i64 %X
10}
11
12define x86_fastcallcc i64 @caller2(i64 %X) {
13 ret i64 %X
14}
15