Imported Upstream version 5.18.0.205

Former-commit-id: 7f59f7e792705db773f1caecdaa823092f4e2927
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2018-11-16 08:20:38 +00:00
parent 5cd5df71cc
commit 8e12397d70
28486 changed files with 3867013 additions and 66 deletions

View File

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