blob: 67c22fff2751705cadc227175b6d5e47dcb90f2e [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=intel | \
Dan Gohman91888f02007-07-31 20:11:57 +00002; RUN: grep {mov EDX, 1}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003; 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