aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/fast-cc-callee-pops.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/fast-cc-callee-pops.ll')
-rw-r--r--test/CodeGen/X86/fast-cc-callee-pops.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/X86/fast-cc-callee-pops.ll b/test/CodeGen/X86/fast-cc-callee-pops.ll
new file mode 100644
index 0000000..ed15dd2
--- /dev/null
+++ b/test/CodeGen/X86/fast-cc-callee-pops.ll
@@ -0,0 +1,8 @@
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=x86 -x86-asm-syntax=intel -mcpu=yonah | grep {ret 20}
+
+; Check that a fastcc function pops its stack variables before returning.
+
+x86_fastcallcc void %func(long %X, long %Y, float %G, double %Z) {
+ ret void
+}