blob: fe96c0c8be2a17e500bcfd959a649430ccc35fd3 [file] [log] [blame]
Dan Gohman36a09472009-09-08 23:54:48 +00001; RUN: llc < %s -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