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
55 lines
2.0 KiB
LLVM
55 lines
2.0 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc < %s -mtriple=arm64-apple-ios -relocation-model=pic -frame-pointer=all | FileCheck %s
|
|
|
|
@__stack_chk_guard = external global ptr
|
|
|
|
; PR20558
|
|
|
|
; Load the stack guard for the second time, just in case the previous value gets spilled.
|
|
define i32 @test_stack_guard_remat2() ssp {
|
|
; CHECK-LABEL: test_stack_guard_remat2:
|
|
; CHECK: ; %bb.0: ; %entry
|
|
; CHECK-NEXT: sub sp, sp, #64
|
|
; CHECK-NEXT: stp x29, x30, [sp, #48] ; 16-byte Folded Spill
|
|
; CHECK-NEXT: add x29, sp, #48
|
|
; CHECK-NEXT: .cfi_def_cfa w29, 16
|
|
; CHECK-NEXT: .cfi_offset w30, -8
|
|
; CHECK-NEXT: .cfi_offset w29, -16
|
|
; CHECK-NEXT: Lloh0:
|
|
; CHECK-NEXT: adrp x8, ___stack_chk_guard@GOTPAGE
|
|
; CHECK-NEXT: Lloh1:
|
|
; CHECK-NEXT: adrp x9, ___stack_chk_guard@GOTPAGE
|
|
; CHECK-NEXT: Lloh2:
|
|
; CHECK-NEXT: ldr x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
|
|
; CHECK-NEXT: Lloh3:
|
|
; CHECK-NEXT: ldr x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
|
|
; CHECK-NEXT: Lloh4:
|
|
; CHECK-NEXT: ldr x8, [x8]
|
|
; CHECK-NEXT: Lloh5:
|
|
; CHECK-NEXT: ldr x9, [x9]
|
|
; CHECK-NEXT: str x8, [sp]
|
|
; CHECK-NEXT: stur x9, [x29, #-8]
|
|
; CHECK-NEXT: ldur x9, [x29, #-8]
|
|
; CHECK-NEXT: cmp x8, x9
|
|
; CHECK-NEXT: b.ne LBB0_2
|
|
; CHECK-NEXT: ; %bb.1: ; %entry
|
|
; CHECK-NEXT: ldp x29, x30, [sp, #48] ; 16-byte Folded Reload
|
|
; CHECK-NEXT: mov w0, #-1
|
|
; CHECK-NEXT: add sp, sp, #64
|
|
; CHECK-NEXT: ret
|
|
; CHECK-NEXT: LBB0_2: ; %entry
|
|
; CHECK-NEXT: bl ___stack_chk_fail
|
|
; CHECK-NEXT: .loh AdrpLdrGotLdr Lloh1, Lloh3, Lloh5
|
|
; CHECK-NEXT: .loh AdrpLdrGotLdr Lloh0, Lloh2, Lloh4
|
|
entry:
|
|
%StackGuardSlot = alloca ptr
|
|
%StackGuard = load ptr, ptr @__stack_chk_guard
|
|
call void @llvm.stackprotector(ptr %StackGuard, ptr %StackGuardSlot)
|
|
%container = alloca [32 x i8], align 1
|
|
call void @llvm.stackprotectorcheck(ptr @__stack_chk_guard)
|
|
ret i32 -1
|
|
}
|
|
|
|
declare void @llvm.stackprotector(ptr, ptr) ssp
|
|
declare void @llvm.stackprotectorcheck(ptr) ssp
|