~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/CodeGen/X86/red-zone.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2015-07-15 17:51:08 UTC
  • Revision ID: package-import@ubuntu.com-20150715175108-l8mynwovkx4zx697
Tags: upstream-3.7~+rc2
ImportĀ upstreamĀ versionĀ 3.7~+rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; RUN: llc < %s -mcpu=generic -mtriple=x86_64-linux | FileCheck %s
 
2
 
 
3
; First without noredzone.
 
4
; CHECK-LABEL: f0:
 
5
; CHECK: -4(%rsp)
 
6
; CHECK: -4(%rsp)
 
7
; CHECK: ret
 
8
define x86_fp80 @f0(float %f) nounwind readnone {
 
9
entry:
 
10
        %0 = fpext float %f to x86_fp80         ; <x86_fp80> [#uses=1]
 
11
        ret x86_fp80 %0
 
12
}
 
13
 
 
14
; Then with noredzone.
 
15
; CHECK-LABEL: f1:
 
16
; CHECK: subq $4, %rsp
 
17
; CHECK: (%rsp)
 
18
; CHECK: (%rsp)
 
19
; CHECK: addq $4, %rsp
 
20
; CHECK: ret
 
21
define x86_fp80 @f1(float %f) nounwind readnone noredzone {
 
22
entry:
 
23
        %0 = fpext float %f to x86_fp80         ; <x86_fp80> [#uses=1]
 
24
        ret x86_fp80 %0
 
25
}