blob: fe96c0c8be2a17e500bcfd959a649430ccc35fd3 [file] [log] [blame]
Dan Gohman40503392009-09-08 23:54:48 +00001; RUN: llc < %s -march=x86 -x86-asm-syntax=intel | \
Dan Gohman54ec4bf2007-07-31 20:11:57 +00002; RUN: grep {mov EDX, 1}
Chris Lattner53eadd12005-05-12 23:09:04 +00003; check that fastcc is passing stuff in regs.
4
Chris Lattnercbb54512007-02-28 18:35:36 +00005declare x86_fastcallcc i64 @callee(i64)
Chris Lattner544dab32006-03-18 23:48:54 +00006
Chris Lattnercbb54512007-02-28 18:35:36 +00007define i64 @caller() {
Chris Lattner861302e2007-11-18 18:26:45 +00008 %X = call x86_fastcallcc i64 @callee( i64 4294967299 ) ; <i64> [#uses=1]
Chris Lattnercbb54512007-02-28 18:35:36 +00009 ret i64 %X
Chris Lattner53eadd12005-05-12 23:09:04 +000010}
11
Chris Lattnercbb54512007-02-28 18:35:36 +000012define x86_fastcallcc i64 @caller2(i64 %X) {
13 ret i64 %X
Chris Lattner53eadd12005-05-12 23:09:04 +000014}
Chris Lattnercbb54512007-02-28 18:35:36 +000015