blob: 721b2d80118bb8da98f9429fd1b309e2c3688e8c [file] [log] [blame]
Chris Lattner7e085702007-02-28 18:35:36 +00001; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=intel | grep 'mov EDX, 1'
Chris Lattnerb7941072005-05-12 23:09:04 +00002; check that fastcc is passing stuff in regs.
3
Chris Lattner7e085702007-02-28 18:35:36 +00004declare x86_fastcallcc i64 @callee(i64)
Chris Lattner120e07f2006-03-18 23:48:54 +00005
Chris Lattner7e085702007-02-28 18:35:36 +00006define i64 @caller() {
7 %X = callx86_fastcallcc i64 @callee( i64 4294967299 ) ; <i64> [#uses=1]
8 ret i64 %X
Chris Lattnerb7941072005-05-12 23:09:04 +00009}
10
Chris Lattner7e085702007-02-28 18:35:36 +000011define x86_fastcallcc i64 @caller2(i64 %X) {
12 ret i64 %X
Chris Lattnerb7941072005-05-12 23:09:04 +000013}
Chris Lattner7e085702007-02-28 18:35:36 +000014