CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
78 lines
1.6 KiB
LLVM
78 lines
1.6 KiB
LLVM
; This test is attempting to detect that the compiler correctly generates stack
|
|
; probe calls when the size of the local variables exceeds the specified stack
|
|
; probe size.
|
|
;
|
|
; Testing the default value of 4096 bytes makes sense, because the default
|
|
; stack probe size equals the page size (4096 bytes for all x86 targets), and
|
|
; this is unlikely to change in the future.
|
|
;
|
|
; RUN: llc -mtriple=i686-windows-msvc < %s | FileCheck %s
|
|
|
|
target datalayout = "e-m:w-p:32:32-i64:64-f80:32-n8:16:32-S32"
|
|
|
|
define i32 @test1() "stack-probe-size"="0" {
|
|
%buffer = alloca [4095 x i8]
|
|
|
|
ret i32 0
|
|
|
|
; CHECK-LABEL: _test1:
|
|
; CHECK-NOT: subl $4095, %esp
|
|
; CHECK: movl $4095, %eax
|
|
; CHECK: calll __chkstk
|
|
}
|
|
|
|
define i32 @test2() {
|
|
%buffer = alloca [4095 x i8]
|
|
|
|
ret i32 0
|
|
|
|
; CHECK-LABEL: _test2:
|
|
; CHECK-NOT: movl $4095, %eax
|
|
; CHECK: subl $4095, %esp
|
|
; CHECK-NOT: calll __chkstk
|
|
}
|
|
|
|
define i32 @test3() "stack-probe-size"="8192" {
|
|
%buffer = alloca [4095 x i8]
|
|
|
|
ret i32 0
|
|
|
|
; CHECK-LABEL: _test3:
|
|
; CHECK-NOT: movl $4095, %eax
|
|
; CHECK: subl $4095, %esp
|
|
; CHECK-NOT: calll __chkstk
|
|
}
|
|
|
|
define i32 @test4() "stack-probe-size"="0" {
|
|
%buffer = alloca [4096 x i8]
|
|
|
|
ret i32 0
|
|
|
|
; CHECK-LABEL: _test4:
|
|
; CHECK-NOT: subl $4096, %esp
|
|
; CHECK: movl $4096, %eax
|
|
; CHECK: calll __chkstk
|
|
}
|
|
|
|
define i32 @test5() {
|
|
%buffer = alloca [4096 x i8]
|
|
|
|
ret i32 0
|
|
|
|
; CHECK-LABEL: _test5:
|
|
; CHECK-NOT: subl $4096, %esp
|
|
; CHECK: movl $4096, %eax
|
|
; CHECK: calll __chkstk
|
|
}
|
|
|
|
define i32 @test6() "stack-probe-size"="8192" {
|
|
%buffer = alloca [4096 x i8]
|
|
|
|
ret i32 0
|
|
|
|
; CGECK-LABEL: _test6:
|
|
; CGECK-NOT: movl $4096, %eax
|
|
; CGECK: subl $4096, %esp
|
|
; CGECK-NOT: calll __chkstk
|
|
}
|