xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/red-zone.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
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
8define x86_fp80 @f0(float %f) nounwind readnone {
9entry:
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
21define x86_fp80 @f1(float %f) nounwind readnone noredzone {
22entry:
23	%0 = fpext float %f to x86_fp80		; <x86_fp80> [#uses=1]
24	ret x86_fp80 %0
25}
26