diff options
-rw-r--r-- | test/CodeGen/X86/fast-cc-callee-pops.ll | 7 |
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 +} |