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
55 lines
1.7 KiB
ArmAsm
55 lines
1.7 KiB
ArmAsm
# RUN: llvm-mc -filetype=obj -triple=mips64el-unknown-linux -mcpu=mips64r2 %s \
|
|
# RUN: | llvm-objdump --no-print-imm-hex -d - | FileCheck %s
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=mips64el-unknown-linux -mcpu=mips64r2 %s \
|
|
# RUN: | llvm-readobj -r - | FileCheck %s -check-prefix=CHECK-REL
|
|
|
|
|
|
# Test that R_MIPS_HIGHER and R_MIPS_HIGHEST relocations are created. By using
|
|
# NEXT we also test that none of the expressions from the test2 generates
|
|
# relocations.
|
|
|
|
test1:
|
|
# CHECK-LABEL: <test1>:
|
|
|
|
lui $5, %highest(func)
|
|
daddiu $5, $5, %higher(func)
|
|
|
|
# CHECK-REL: Relocations [
|
|
# CHECK-REL-NEXT: {
|
|
# CHECK-REL-NEXT: 0x{{[0-9,A-F]+}} R_MIPS_HIGHEST
|
|
# CHECK-REL-NEXT: 0x{{[0-9,A-F]+}} R_MIPS_HIGHER
|
|
# CHECK-REL-NEXT: }
|
|
|
|
|
|
# Test the calculation of %higher and %highest:
|
|
# ((x + 0x80008000) >> 32) & 0xffff (higher)
|
|
# ((x + 0x800080008000) >> 48) & 0xffff (highest).
|
|
|
|
test2:
|
|
# CHECK-LABEL: <test2>:
|
|
|
|
# Check the case where relocations are not modified by adding +1. The constant
|
|
# is chosen so that it is just below the value that triggers the addition of +1
|
|
# to %higher.
|
|
$L1:
|
|
lui $6, %highest($L2-$L1+0x300047FFF7FF7)
|
|
daddiu $6, $6, %higher($L2-$L1+0x300047FFF7FF7)
|
|
$L2:
|
|
# CHECK: lui $6, 3
|
|
# CHECK: daddiu $6, $6, 4
|
|
|
|
|
|
# Check the case where %higher is modified by adding +1.
|
|
lui $7, %highest($L2-$L1+0x300047FFF7FF8)
|
|
ld $7, %higher ($L2-$L1+0x300047FFF7FF8)($7)
|
|
# CHECK: lui $7, 3
|
|
# CHECK: ld $7, 5($7)
|
|
|
|
|
|
# Check the case where both %higher and %highest are modified by adding +1.
|
|
lui $8, %highest(0x37FFF7FFF8000)
|
|
ld $8, %higher (0x37FFF7FFF8000)($8)
|
|
# CHECK: lui $8, 4
|
|
# CHECK: ld $8, -32768($8)
|