blob: 67c22fff2751705cadc227175b6d5e47dcb90f2e [file] [log] [blame]
Reid Spencerd3b1f6d2007-04-15 22:20:47 +00001; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=intel | \
Dan Gohmanb1576f52007-07-31 20:11:57 +00002; RUN: grep {mov EDX, 1}
Chris Lattnerb7941072005-05-12 23:09:04 +00003; check that fastcc is passing stuff in regs.
4
Chris Lattner7e085702007-02-28 18:35:36 +00005declare x86_fastcallcc i64 @callee(i64)
Chris Lattner120e07f2006-03-18 23:48:54 +00006
Chris Lattner7e085702007-02-28 18:35:36 +00007define i64 @caller() {
8 %X = callx86_fastcallcc i64 @callee( i64 4294967299 ) ; <i64> [#uses=1]
9 ret i64 %X
Chris Lattnerb7941072005-05-12 23:09:04 +000010}
11
Chris Lattner7e085702007-02-28 18:35:36 +000012define x86_fastcallcc i64 @caller2(i64 %X) {
13 ret i64 %X
Chris Lattnerb7941072005-05-12 23:09:04 +000014}
Chris Lattner7e085702007-02-28 18:35:36 +000015