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
74 lines
3.0 KiB
LLVM
74 lines
3.0 KiB
LLVM
; RUN: rm -rf %t && split-file %s %t && cd %t
|
|
; RUN: cat common.ll authflag.ll > auth.ll
|
|
; RUN: cat common.ll noauthflag.ll > noauth1.ll
|
|
; RUN: cat common.ll > noauth2.ll
|
|
|
|
; RUN: llc -mtriple=aarch64-linux -filetype=asm auth.ll -o - | \
|
|
; RUN: FileCheck --check-prefix=AUTH-ASM %s
|
|
; RUN: llc -mtriple=aarch64-linux -filetype=obj auth.ll -o - | \
|
|
; RUN: llvm-readelf -r -x .data.DW.ref.__gxx_personality_v0 - | \
|
|
; RUN: FileCheck --check-prefix=AUTH-RELOC %s
|
|
|
|
; AUTH-ASM: DW.ref.__gxx_personality_v0:
|
|
; AUTH-ASM-NEXT: .xword __gxx_personality_v0@AUTH(ia,32429,addr)
|
|
|
|
; AUTH-RELOC: Relocation section '.rela.data.DW.ref.__gxx_personality_v0' at offset 0x2a0 contains 1 entries:
|
|
; AUTH-RELOC-NEXT: Offset Info Type Symbol's Value Symbol's Name + Addend
|
|
; AUTH-RELOC-NEXT: 0000000000000000 0000000f00000244 R_AARCH64_AUTH_ABS64 0000000000000000 __gxx_personality_v0 + 0
|
|
|
|
; AUTH-RELOC: Hex dump of section '.data.DW.ref.__gxx_personality_v0':
|
|
; AUTH-RELOC-NEXT: 0x00000000 00000000 ad7e0080
|
|
; ^^^^ 0x7EAD = discriminator
|
|
; ^^ 0b10000000: bit 63 = 1 -> address diversity enabled, bits 61:60 = 0b00 -> key is IA
|
|
|
|
; RUN: llc -mtriple=aarch64-linux -filetype=asm noauth1.ll -o - | \
|
|
; RUN: FileCheck --check-prefix=NOAUTH-ASM %s
|
|
; RUN: llc -mtriple=aarch64-linux -filetype=obj noauth1.ll -o - | \
|
|
; RUN: llvm-readelf -r -x .data.DW.ref.__gxx_personality_v0 - | \
|
|
; RUN: FileCheck --check-prefix=NOAUTH-RELOC %s
|
|
|
|
; RUN: llc -mtriple=aarch64-linux -filetype=asm noauth2.ll -o - | \
|
|
; RUN: FileCheck --check-prefix=NOAUTH-ASM %s
|
|
; RUN: llc -mtriple=aarch64-linux -filetype=obj noauth2.ll -o - | \
|
|
; RUN: llvm-readelf -r -x .data.DW.ref.__gxx_personality_v0 - | \
|
|
; RUN: FileCheck --check-prefix=NOAUTH-RELOC %s
|
|
|
|
; NOAUTH-ASM: DW.ref.__gxx_personality_v0:
|
|
; NOAUTH-ASM-NEXT: .xword __gxx_personality_v0{{$}}
|
|
|
|
; NOAUTH-RELOC: Relocation section '.rela.data.DW.ref.__gxx_personality_v0' at offset 0x2a0 contains 1 entries:
|
|
; NOAUTH-RELOC-NEXT: Offset Info Type Symbol's Value Symbol's Name + Addend
|
|
; NOAUTH-RELOC-NEXT: 0000000000000000 0000000f00000101 R_AARCH64_ABS64 0000000000000000 __gxx_personality_v0 + 0
|
|
|
|
; NOAUTH-RELOC: Hex dump of section '.data.DW.ref.__gxx_personality_v0':
|
|
; NOAUTH-RELOC-NEXT: 0x00000000 00000000 00000000
|
|
|
|
;--- common.ll
|
|
@_ZTISt9exception = external constant ptr
|
|
|
|
define i32 @main() personality ptr @__gxx_personality_v0 {
|
|
entry:
|
|
invoke void @foo() to label %cont unwind label %lpad
|
|
|
|
lpad:
|
|
%0 = landingpad { ptr, i32 }
|
|
catch ptr null
|
|
catch ptr @_ZTISt9exception
|
|
ret i32 0
|
|
|
|
cont:
|
|
ret i32 0
|
|
}
|
|
|
|
declare i32 @__gxx_personality_v0(...)
|
|
|
|
declare void @foo()
|
|
|
|
;--- authflag.ll
|
|
!llvm.module.flags = !{!0}
|
|
!0 = !{i32 8, !"ptrauth-sign-personality", i32 1}
|
|
|
|
;--- noauthflag.ll
|
|
!llvm.module.flags = !{!0}
|
|
!0 = !{i32 8, !"ptrauth-sign-personality", i32 0}
|