1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00
llvm-mirror/test/CodeGen/ARM/Windows/chkstk-no-stack-arg-probe.ll
Martin Storsjo 1a347f2b7a [ARM, AArch64] Check the no-stack-arg-probe attribute for dynamic stack probes
This extends the use of this attribute on ARM and AArch64 from
SVN r325900 (where it was only checked for fixed stack
allocations on ARM/AArch64, but for all stack allocations on X86).

This also adds a testcase for the existing use of disabling the
fixed stack probe with the attribute on ARM and AArch64.

Differential Revision: https://reviews.llvm.org/D44291

llvm-svn: 327897
2018-03-19 20:06:50 +00:00

13 lines
303 B
LLVM

; RUN: llc -mtriple=thumbv7-windows -verify-machineinstrs %s -o - \
; RUN: | FileCheck %s
define arm_aapcs_vfpcc void @check_watermark() "no-stack-arg-probe" {
entry:
%buffer = alloca [4096 x i8], align 1
ret void
}
; CHECK: check_watermark:
; CHECK-NOT: bl __chkstk
; CHECK: sub.w sp, sp, #4096