new testcase
authorChris Lattner <sabre@nondot.org>
Fri, 13 May 2005 22:15:26 +0000 (22:15 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 13 May 2005 22:15:26 +0000 (22:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21989 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/X86/fast-cc-callee-pops.ll [new file with mode: 0644]

diff --git a/test/CodeGen/X86/fast-cc-callee-pops.ll b/test/CodeGen/X86/fast-cc-callee-pops.ll
new file mode 100644 (file)
index 0000000..959a14b
--- /dev/null
@@ -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
+}