blob: fe96c0c8be2a17e500bcfd959a649430ccc35fd3 [file] [log] [blame]
Dan Gohman0a063102009-09-08 23:54:48 +00001; RUN: llc < %s -march=x86 -x86-asm-syntax=intel | \
Dan Gohman91888f02007-07-31 20:11:57 +00002; RUN: grep {mov EDX, 1}
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003; check that fastcc is passing stuff in regs.
4
5declare x86_fastcallcc i64 @callee(i64)
6
7define i64 @caller() {
Chris Lattner11a4f702007-11-18 18:26:45 +00008 %X = call x86_fastcallcc i64 @callee( i64 4294967299 ) ; <i64> [#uses=1]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009 ret i64 %X
10}
11
12define x86_fastcallcc i64 @caller2(i64 %X) {
13 ret i64 %X
14}
15