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
50 lines
1.5 KiB
LLVM
50 lines
1.5 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 3
|
|
; RUN: llc -mtriple=riscv64 -stop-after=finalize-isel < %s \
|
|
; RUN: | FileCheck %s --implicit-check-not=PseudoBRINDX7 \
|
|
; RUN: --implicit-check-not=PseudoCALLIndirectX7 \
|
|
; RUN: --implicit-check-not=PseudoTAILIndirectX7
|
|
|
|
; Test that with cf-protection-branch enabled, indirect branches/calls select
|
|
; the non-X7 variants to avoid using X7 for the target address.
|
|
|
|
@brind.arr = internal unnamed_addr constant [2 x ptr] [ptr blockaddress(@brind, %bb1), ptr blockaddress(@brind, %bb2)], align 8
|
|
@x = dso_local global i32 0, align 4
|
|
|
|
define void @brind(i32 noundef signext %0) {
|
|
; CHECK-LABEL: name: brind
|
|
; CHECK: PseudoBRIND killed %{{[0-9]+}}, 0
|
|
%2 = sext i32 %0 to i64
|
|
%3 = getelementptr inbounds [2 x ptr], ptr @brind.arr, i64 0, i64 %2
|
|
%4 = load ptr, ptr %3, align 8
|
|
indirectbr ptr %4, [label %bb1, label %bb2]
|
|
|
|
bb1:
|
|
%5 = load i32, ptr @x, align 4
|
|
%6 = add nsw i32 %5, 2
|
|
store i32 %6, ptr @x, align 4
|
|
br label %bb2
|
|
|
|
bb2:
|
|
%7 = load i32, ptr @x, align 4
|
|
%8 = add nsw i32 %7, 1
|
|
store i32 %8, ptr @x, align 4
|
|
ret void
|
|
}
|
|
|
|
define i32 @indirect_call(ptr %0) {
|
|
; CHECK-LABEL: name: indirect_call
|
|
; CHECK: PseudoCALLIndirect %{{[0-9]+}},
|
|
call void %0()
|
|
ret i32 0
|
|
}
|
|
|
|
define void @indirect_tail(ptr %0) {
|
|
; CHECK-LABEL: name: indirect_tail
|
|
; CHECK: PseudoTAILIndirect %{{[0-9]+}},
|
|
tail call void %0()
|
|
ret void
|
|
}
|
|
|
|
!llvm.module.flags = !{!0}
|
|
!0 = !{i32 8, !"cf-protection-branch", i32 1}
|