blob: c8621a7780bd8cd0152fc48f458a37eea851d5d2 [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() {
Chris Lattner11a4f702007-11-18 18:26:45 +00008 %X = call x86_fastcallcc i64 @callee( i64 4294967299 ) ; <i64> [#uses=1]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009 ret i64 %X
10}
11
12define x86_fastcallcc i64 @caller2(i64 %X) {
13 ret i64 %X
14}
15