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
2.3 KiB
LLVM
74 lines
2.3 KiB
LLVM
; RUN: llc < %s -O0 -mtriple=aarch64-none-linux-gnu -mattr=+pauth | FileCheck --check-prefixes=CHECK,O0 %s
|
|
; RUN: llc < %s -O2 -mtriple=aarch64-none-linux-gnu -mattr=+pauth | FileCheck --check-prefixes=CHECK,O2 %s
|
|
|
|
@ds = external global i8
|
|
|
|
declare void @f(ptr %p)
|
|
|
|
; CHECK: call:
|
|
define void @call(ptr %p) {
|
|
; CHECK: [[LABEL:.L.*]]:
|
|
; CHECK-NEXT: .reloc [[LABEL]], R_AARCH64_PATCHINST, ds
|
|
; CHECK-NEXT: bl f
|
|
notail call void @f(ptr %p) [ "deactivation-symbol"(ptr @ds) ]
|
|
ret void
|
|
}
|
|
|
|
; CHECK: pauth_sign_zero:
|
|
define i64 @pauth_sign_zero(i64 %p) {
|
|
; O0: mov x8, xzr
|
|
; CHECK: [[LABEL:.L.*]]:
|
|
; CHECK-NEXT: .reloc [[LABEL]], R_AARCH64_PATCHINST, ds
|
|
; O0-NEXT: pacia x0, x8
|
|
; O2-NEXT: paciza x0
|
|
%signed = call i64 @llvm.ptrauth.sign(i64 %p, i32 0, i64 0) [ "deactivation-symbol"(ptr @ds) ]
|
|
ret i64 %signed
|
|
}
|
|
|
|
; CHECK: pauth_sign_const:
|
|
define i64 @pauth_sign_const(i64 %p) {
|
|
; CHECK: mov x16, #12345
|
|
; CHECK-NEXT: [[LABEL:.L.*]]:
|
|
; CHECK-NEXT: .reloc [[LABEL]], R_AARCH64_PATCHINST, ds
|
|
; CHECK-NEXT: pacia x0, x16
|
|
%signed = call i64 @llvm.ptrauth.sign(i64 %p, i32 0, i64 12345) [ "deactivation-symbol"(ptr @ds) ]
|
|
ret i64 %signed
|
|
}
|
|
|
|
; CHECK: pauth_sign:
|
|
define i64 @pauth_sign(i64 %p, i64 %d) {
|
|
; CHECK: [[LABEL:.L.*]]:
|
|
; CHECK-NEXT: .reloc [[LABEL]], R_AARCH64_PATCHINST, ds
|
|
; CHECK-NEXT: pacia x0, x1
|
|
%signed = call i64 @llvm.ptrauth.sign(i64 %p, i32 0, i64 %d) [ "deactivation-symbol"(ptr @ds) ]
|
|
ret i64 %signed
|
|
}
|
|
|
|
; CHECK: pauth_auth_zero:
|
|
define i64 @pauth_auth_zero(i64 %p) {
|
|
; CHECK: [[LABEL:.L.*]]:
|
|
; CHECK-NEXT: .reloc [[LABEL]], R_AARCH64_PATCHINST, ds
|
|
; CHECK-NEXT: autiza x0
|
|
%authed = call i64 @llvm.ptrauth.auth(i64 %p, i32 0, i64 0) [ "deactivation-symbol"(ptr @ds) ]
|
|
ret i64 %authed
|
|
}
|
|
|
|
; CHECK: pauth_auth_const:
|
|
define i64 @pauth_auth_const(i64 %p) {
|
|
; CHECK: mov x8, #12345
|
|
; CHECK-NEXT: [[LABEL:.L.*]]:
|
|
; CHECK-NEXT: .reloc [[LABEL]], R_AARCH64_PATCHINST, ds
|
|
; CHECK-NEXT: autia x0, x8
|
|
%authed = call i64 @llvm.ptrauth.auth(i64 %p, i32 0, i64 12345) [ "deactivation-symbol"(ptr @ds) ]
|
|
ret i64 %authed
|
|
}
|
|
|
|
; CHECK: pauth_auth:
|
|
define i64 @pauth_auth(i64 %p, i64 %d) {
|
|
; CHECK: [[LABEL:.L.*]]:
|
|
; CHECK-NEXT: .reloc [[LABEL]], R_AARCH64_PATCHINST, ds
|
|
; CHECK-NEXT: autia x0, x1
|
|
%authed = call i64 @llvm.ptrauth.auth(i64 %p, i32 0, i64 %d) [ "deactivation-symbol"(ptr @ds) ]
|
|
ret i64 %authed
|
|
}
|