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
41 lines
1.4 KiB
LLVM
41 lines
1.4 KiB
LLVM
;; Testcase to check that module with different branch-target-enforcement can
|
|
;; be mixed.
|
|
;;
|
|
; RUN: llvm-as %s -o %t1.bc
|
|
; RUN: llvm-as %p/Inputs/foo.ll -o %t2.bc
|
|
; RUN: llvm-lto -exported-symbol main \
|
|
; RUN: -exported-symbol foo_on \
|
|
; RUN: -filetype=obj \
|
|
; RUN: %t1.bc %t2.bc \
|
|
; RUN: -o %t1.exe 2>&1 | FileCheck --allow-empty %s
|
|
; RUN: llvm-objdump -d %t1.exe | FileCheck --check-prefix=CHECK-DUMP %s
|
|
; RUN: llvm-readelf -n %t1.exe | FileCheck --check-prefix=CHECK-PROP %s
|
|
|
|
target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
|
|
target triple = "aarch64-unknown-linux-gnu"
|
|
|
|
declare i32 @foo_on();
|
|
|
|
define i32 @main() "sign-return-address"="non-leaf" "sign-return-address-key"="a_key" {
|
|
entry:
|
|
%add = call i32 @foo_on()
|
|
ret i32 %add
|
|
}
|
|
|
|
!llvm.module.flags = !{!0, !1, !2, !3 }
|
|
!0 = !{i32 8, !"branch-target-enforcement", i32 0}
|
|
!1 = !{i32 8, !"sign-return-address", i32 1}
|
|
!2 = !{i32 8, !"sign-return-address-all", i32 0}
|
|
!3 = !{i32 8, !"sign-return-address-with-bkey", i32 0}
|
|
|
|
; CHECK-NOT: linking module flags 'branch-target-enforcement': IDs have conflicting values in
|
|
; CHECK-DUMP: <main>:
|
|
; CHECK-DUMP: paciasp
|
|
; CHECK-DUMP: str
|
|
; CHECK-DUMP: bl 0x8 <main+0x8>
|
|
; CHECK-DUMP: <foo_on>:
|
|
; CHECK-DUMP: pacibsp
|
|
|
|
;; `main` doesn't support BTI while `foo` does, so in the binary
|
|
;; we should see only PAC which is supported by both.
|
|
; CHECK-PROP: Properties: aarch64 feature: PAC |