summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM/Windows/chkstk-no-stack-arg-probe.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/ARM/Windows/chkstk-no-stack-arg-probe.ll')
-rw-r--r--llvm/test/CodeGen/ARM/Windows/chkstk-no-stack-arg-probe.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/Windows/chkstk-no-stack-arg-probe.ll b/llvm/test/CodeGen/ARM/Windows/chkstk-no-stack-arg-probe.ll
new file mode 100644
index 00000000000..a2a3bf0df88
--- /dev/null
+++ b/llvm/test/CodeGen/ARM/Windows/chkstk-no-stack-arg-probe.ll
@@ -0,0 +1,12 @@
+; 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
OpenPOWER on IntegriCloud