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
1.5 KiB
ArmAsm
74 lines
1.5 KiB
ArmAsm
# This test ensures that "unclaimed" jump table entries are accounted later
|
|
# in postProcessIndirectBranches and the function is marked as non-simple.
|
|
|
|
# The test is compiled from the following source using GCC 12.2 -O3:
|
|
# https://godbolt.org/z/YcPG131s6
|
|
# int func(long long Input) {
|
|
# switch(Input) {
|
|
# case 3: return 1;
|
|
# case 4: return 2;
|
|
# case 6: return 3;
|
|
# case 8: return 4;
|
|
# case 13: return 5;
|
|
# default: __builtin_unreachable();
|
|
# }
|
|
# }
|
|
|
|
# REQUIRES: system-linux
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown %s -o %t.o
|
|
# RUN: %clang %cflags %S/Inputs/unclaimed-jt-entries.c -no-pie %t.o -o %t.exe -Wl,-q
|
|
# RUN: llvm-bolt %t.exe -o %t.out 2>&1 | FileCheck %s
|
|
|
|
# CHECK: BOLT-WARNING: 11 unclaimed data relocations remain against function func
|
|
|
|
# Run the optimized binary
|
|
# RUN: %t.out 3 | FileCheck %s --check-prefix=CHECK3
|
|
# CHECK3: 1
|
|
# RUN: %t.out 4 | FileCheck %s --check-prefix=CHECK4
|
|
# CHECK4: 2
|
|
# RUN: %t.out 6 | FileCheck %s --check-prefix=CHECK6
|
|
# CHECK6: 3
|
|
# RUN: %t.out 8 | FileCheck %s --check-prefix=CHECK8
|
|
# CHECK8: 4
|
|
# RUN: %t.out 13 | FileCheck %s --check-prefix=CHECK13
|
|
# CHECK13: 5
|
|
|
|
.text
|
|
.globl func
|
|
.type func, %function
|
|
.size func, .Lend-func
|
|
func:
|
|
jmp *L4-24(,%rdi,8)
|
|
.L5:
|
|
movl $4, %eax
|
|
ret
|
|
.L9:
|
|
movl $2, %eax
|
|
ret
|
|
.L8:
|
|
movl $1, %eax
|
|
ret
|
|
.L3:
|
|
movl $5, %eax
|
|
ret
|
|
.L6:
|
|
movl $3, %eax
|
|
ret
|
|
.Lend:
|
|
|
|
.section .rodata
|
|
.globl L4
|
|
L4:
|
|
.quad .L8
|
|
.quad .L9
|
|
.quad .L3
|
|
.quad .L6
|
|
.quad .L3
|
|
.quad .L5
|
|
.quad .L3
|
|
.quad .L3
|
|
.quad .L3
|
|
.quad .L3
|
|
.quad .L3
|