blob: dc88015dd16573e3acbc4227e0c1cbfc687c2153 [file] [log] [blame]
Reid Spencerd3b1f6d2007-04-15 22:20:47 +00001; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=intel | \
2; 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