Files
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

86 lines
2.9 KiB
LLVM

; Regression test for safestack layout. Used to fail with asan.
; RUN: opt -safe-stack -S -mtriple=x86_64-pc-linux-gnu < %s -o - | FileCheck %s
; RUN: opt -passes='require<libcall-lowering-info>,safe-stack' -S -mtriple=x86_64-pc-linux-gnu < %s -o - | FileCheck %s
define void @f() safestack {
; CHECK-LABEL: define void @f
entry:
; CHECK: %[[USP:.*]] = load ptr, ptr @__safestack_unsafe_stack_ptr
; CHECK: getelementptr i8, ptr %[[USP]], i32 -224
%x0 = alloca i8, align 16
%x1 = alloca i8, align 16
%x2 = alloca i8, align 16
%x3 = alloca i8, align 16
%x4 = alloca i8, align 16
%x5 = alloca i8, align 16
%x6 = alloca i8, align 16
%x7 = alloca i8, align 16
%x8 = alloca i8, align 16
%x9 = alloca i8, align 16
%x10 = alloca i8, align 16
%x11 = alloca i8, align 16
%x12 = alloca i8, align 16
%x13 = alloca i8, align 16
%y0 = alloca i8, align 2
%y1 = alloca i8, align 2
%y2 = alloca i8, align 2
%y3 = alloca i8, align 2
%y4 = alloca i8, align 2
%y5 = alloca i8, align 2
%y6 = alloca i8, align 2
%y7 = alloca i8, align 2
%y8 = alloca i8, align 2
; CHECK: getelementptr i8, ptr %[[USP]], i32 -16
call void @capture8(ptr %x0)
; CHECK: getelementptr i8, ptr %[[USP]], i32 -32
call void @capture8(ptr %x1)
; CHECK: getelementptr i8, ptr %[[USP]], i32 -48
call void @capture8(ptr %x2)
; CHECK: getelementptr i8, ptr %[[USP]], i32 -64
call void @capture8(ptr %x3)
; CHECK: getelementptr i8, ptr %[[USP]], i32 -80
call void @capture8(ptr %x4)
; CHECK: getelementptr i8, ptr %[[USP]], i32 -96
call void @capture8(ptr %x5)
; CHECK: getelementptr i8, ptr %[[USP]], i32 -112
call void @capture8(ptr %x6)
; CHECK: getelementptr i8, ptr %[[USP]], i32 -128
call void @capture8(ptr %x7)
; CHECK: getelementptr i8, ptr %[[USP]], i32 -144
call void @capture8(ptr %x8)
; CHECK: getelementptr i8, ptr %[[USP]], i32 -160
call void @capture8(ptr %x9)
; CHECK: getelementptr i8, ptr %[[USP]], i32 -176
call void @capture8(ptr %x10)
; CHECK: getelementptr i8, ptr %[[USP]], i32 -192
call void @capture8(ptr %x11)
; CHECK: getelementptr i8, ptr %[[USP]], i32 -208
call void @capture8(ptr %x12)
; CHECK: getelementptr i8, ptr %[[USP]], i32 -224
call void @capture8(ptr %x13)
; CHECK: getelementptr i8, ptr %[[USP]], i32 -2
call void @capture8(ptr %y0)
; CHECK: getelementptr i8, ptr %[[USP]], i32 -4
call void @capture8(ptr %y1)
; CHECK: getelementptr i8, ptr %[[USP]], i32 -6
call void @capture8(ptr %y2)
; CHECK: getelementptr i8, ptr %[[USP]], i32 -8
call void @capture8(ptr %y3)
; CHECK: getelementptr i8, ptr %[[USP]], i32 -10
call void @capture8(ptr %y4)
; CHECK: getelementptr i8, ptr %[[USP]], i32 -12
call void @capture8(ptr %y5)
; CHECK: getelementptr i8, ptr %[[USP]], i32 -14
call void @capture8(ptr %y6)
; CHECK: getelementptr i8, ptr %[[USP]], i32 -18
call void @capture8(ptr %y7)
; CHECK: getelementptr i8, ptr %[[USP]], i32 -20
call void @capture8(ptr %y8)
ret void
}
declare void @capture8(ptr)