blob: c8621a7780bd8cd0152fc48f458a37eea851d5d2 [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() {
Chris Lattneref6c8752007-11-18 18:26:45 +00008 %X = call x86_fastcallcc i64 @callee( i64 4294967299 ) ; <i64> [#uses=1]
Chris Lattner7e085702007-02-28 18:35:36 +00009 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