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
1.6 KiB
ArmAsm
55 lines
1.6 KiB
ArmAsm
# Checking that we generate an OpNegateRAState CFI after the split point,
|
|
# when splitting a region with signed RA state.
|
|
# We split at the fallthrough label.
|
|
|
|
# REQUIRES: system-linux
|
|
|
|
# RUN: %clang %s %cflags -march=armv8.3-a -Wl,-q -o %t
|
|
# RUN: link_fdata --no-lbr %s %t %t.fdata
|
|
# RUN: llvm-bolt %t -o %t.bolt --data %t.fdata -split-functions \
|
|
# RUN: --print-only foo --print-split --print-all 2>&1 | FileCheck %s
|
|
|
|
# Checking that we don't see any OpNegateRAState CFIs before the insertion pass.
|
|
# CHECK-NOT: OpNegateRAState
|
|
# CHECK: Binary Function "foo" after pointer-auth-cfi-fixup
|
|
|
|
# CHECK: paciasp
|
|
# CHECK-NEXT: OpNegateRAState
|
|
|
|
# CHECK: ------- HOT-COLD SPLIT POINT -------
|
|
|
|
# CHECK: OpNegateRAState
|
|
# CHECK-NEXT: mov x0, #0x1
|
|
# CHECK-NEXT: autiasp
|
|
# CHECK-NEXT: OpNegateRAState
|
|
# CHECK-NEXT: ret
|
|
|
|
# End of the pointer-auth-cfi-fixup logs
|
|
# CHECK: Binary Function "foo" after finalize-functions
|
|
|
|
.text
|
|
.globl foo
|
|
.type foo, %function
|
|
foo:
|
|
.cfi_startproc
|
|
.entry_bb:
|
|
# FDATA: 1 foo #.entry_bb# 10
|
|
paciasp
|
|
.cfi_negate_ra_state // indicating that paciasp changed the RA state to signed
|
|
cmp x0, #0
|
|
b.eq .Lcold_bb1
|
|
.Lfallthrough: // split point
|
|
mov x0, #1
|
|
autiasp
|
|
.cfi_negate_ra_state // indicating that autiasp changed the RA state to unsigned
|
|
ret
|
|
.Lcold_bb1: // Instructions below are not important, they are just here so the cold block is not empty.
|
|
.cfi_negate_ra_state // ret has unsigned RA state, but the next inst (autiasp) has signed RA state
|
|
mov x0, #2
|
|
retaa
|
|
.cfi_endproc
|
|
.size foo, .-foo
|
|
|
|
## Force relocation mode.
|
|
.reloc 0, R_AARCH64_NONE
|