Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=intel | \ |
Dan Gohman | 91888f0 | 2007-07-31 20:11:57 +0000 | [diff] [blame^] | 2 | ; RUN: grep {mov EDX, 1} |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 3 | ; check that fastcc is passing stuff in regs. |
| 4 | |
| 5 | declare x86_fastcallcc i64 @callee(i64) |
| 6 | |
| 7 | define i64 @caller() { |
| 8 | %X = callx86_fastcallcc i64 @callee( i64 4294967299 ) ; <i64> [#uses=1] |
| 9 | ret i64 %X |
| 10 | } |
| 11 | |
| 12 | define x86_fastcallcc i64 @caller2(i64 %X) { |
| 13 | ret i64 %X |
| 14 | } |
| 15 | |