1 ; RUN: llc -mtriple=x86_64-pc-linux-gnu < %s -o - | FileCheck %s
3 ; Ensure that red zone usage occurs.
4 define signext i8 @testStackProbesOff() {
5 %array = alloca [40096 x i8], align 16
8 ; CHECK-LABEL: testStackProbesOff:
9 ; CHECK: subq $39976, %rsp # imm = 0x9C28
12 ; Ensure stack probes do not result in red zone usage.
13 define void @testStackProbesOn() "probe-stack"="__probestack" {
14 %array = alloca [40096 x i8], align 16
17 ; CHECK-LABEL: testStackProbesOn:
18 ; CHECK: movl $40104, %eax # imm = 0x9CA8
19 ; CHECK-NEXT: callq __probestack
20 ; CHECK-NEXT: subq %rax, %rsp