[llvm-commits] [llvm] r63075 - /llvm/trunk/test/CodeGen/X86/red-zone.ll
Dan Gohman
gohman at apple.com
Mon Jan 26 16:40:28 PST 2009
Author: djg
Date: Mon Jan 26 18:40:27 2009
New Revision: 63075
URL: http://llvm.org/viewvc/llvm-project?rev=63075&view=rev
Log:
Add a regression test for x86-64 red zone usage.
Added:
llvm/trunk/test/CodeGen/X86/red-zone.ll
Added: llvm/trunk/test/CodeGen/X86/red-zone.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/red-zone.ll?rev=63075&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/X86/red-zone.ll (added)
+++ llvm/trunk/test/CodeGen/X86/red-zone.ll Mon Jan 26 18:40:27 2009
@@ -0,0 +1,13 @@
+; RUN: llvm-as < %s | llc -march=x86-64 > %t
+; RUN: not grep subq %t
+; RUN: not grep addq %t
+; RUN: grep {\\-4(%%rsp)} %t | count 2
+; RUN: llvm-as < %s | llc -march=x86-64 -disable-red-zone > %t
+; RUN: grep subq %t | count 1
+; RUN: grep addq %t | count 1
+
+define x86_fp80 @f0(float %f) nounwind readnone {
+entry:
+ %0 = fpext float %f to x86_fp80 ; <x86_fp80> [#uses=1]
+ ret x86_fp80 %0
+}
More information about the llvm-commits
mailing list