aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/fast-cc-pass-in-regs.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/fast-cc-pass-in-regs.ll')
-rw-r--r--test/CodeGen/X86/fast-cc-pass-in-regs.ll15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/X86/fast-cc-pass-in-regs.ll b/test/CodeGen/X86/fast-cc-pass-in-regs.ll
new file mode 100644
index 0000000..dc88015
--- /dev/null
+++ b/test/CodeGen/X86/fast-cc-pass-in-regs.ll
@@ -0,0 +1,15 @@
+; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=intel | \
+; RUN: grep {mov EDX, 1}
+; check that fastcc is passing stuff in regs.
+
+declare x86_fastcallcc i64 @callee(i64)
+
+define i64 @caller() {
+ %X = callx86_fastcallcc i64 @callee( i64 4294967299 ) ; <i64> [#uses=1]
+ ret i64 %X
+}
+
+define x86_fastcallcc i64 @caller2(i64 %X) {
+ ret i64 %X
+}
+