1 ; This test is attempting to detect that the compiler disables stack
2 ; probe calls when the corresponding option is specified.
4 ; RUN: llc -mtriple=i686-windows-msvc < %s | FileCheck %s
6 target datalayout = "e-m:w-p:32:32-i64:64-f80:32-n8:16:32-S32"
8 define i32 @test1() "no-stack-arg-probe" {
9 %buffer = alloca [4095 x i8]
13 ; CHECK-LABEL: _test1:
14 ; CHECK-NOT: movl $4095, %eax
15 ; CHECK: subl $4095, %esp
16 ; CHECK-NOT: calll __chkstk
19 define i32 @test2() "no-stack-arg-probe" {
20 %buffer = alloca [4096 x i8]
24 ; CHECK-LABEL: _test2:
25 ; CHECK-NOT: movl $4096, %eax
26 ; CHECK: subl $4096, %esp
27 ; CHECK-NOT: calll __chkstk
30 define i32 @test3(i32 %size) "no-stack-arg-probe" {
31 %buffer = alloca i8, i32 %size
35 ; CHECK-LABEL: _test3:
36 ; CHECK: subl {{.*}}, %esp
37 ; CHECK-NOT: calll __chkstk