aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-05-13 22:15:26 +0000
committerChris Lattner <sabre@nondot.org>2005-05-13 22:15:26 +0000
commite2fd52397c057470b1d805102a7cbe89692d816d (patch)
tree03e6b0e0eee3c9479e1cdbcc086919287bd9a8d4
parent06cebb456a43ecb385367de7526d5193b9a949e3 (diff)
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21989 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CodeGen/X86/fast-cc-callee-pops.ll7
1 files changed, 7 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 0000000000..959a14b4c1
--- /dev/null
+++ b/test/CodeGen/X86/fast-cc-callee-pops.ll
@@ -0,0 +1,7 @@
+; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=intel -enable-x86-fastcc | grep 'ret 20'
+
+; Check that a fastcc function pops its stack variables before returning.
+
+fastcc void %func(long %X, long %Y, float %G, double %Z) {
+ ret void
+}