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
43 lines
1.5 KiB
ArmAsm
43 lines
1.5 KiB
ArmAsm
# REQUIRES: mips
|
|
# Check MIPS R_MIPS_TLS_DTPREL_HI16/LO16 and R_MIPS_TLS_TPREL_HI16/LO16
|
|
# relocations handling.
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t.o
|
|
# RUN: ld.lld %t.o -o %t.exe
|
|
# RUN: llvm-objdump --no-print-imm-hex -d -t --no-show-raw-insn %t.exe | FileCheck --check-prefix=DIS %s
|
|
# RUN: llvm-readobj -r -A %t.exe | FileCheck %s
|
|
|
|
# RUN: not ld.lld %t.o -shared -o /dev/null 2>&1 | FileCheck %s --check-prefix=ERR --implicit-check-not=error:
|
|
|
|
# ERR: error: relocation R_MIPS_TLS_TPREL_HI16 against loc0 cannot be used with -shared
|
|
# ERR: error: relocation R_MIPS_TLS_TPREL_LO16 against loc0 cannot be used with -shared
|
|
|
|
# DIS: 00000000 l .tdata 00000000 loc0
|
|
|
|
# DIS: <__start>:
|
|
# DIS-NEXT: addiu $2, $3, 0
|
|
# ^-- %hi(loc0 - .tdata - 0x8000)
|
|
# DIS-NEXT: addiu $2, $3, -32768
|
|
# ^-- %lo(loc0 - .tdata - 0x8000)
|
|
# DIS-NEXT: addiu $2, $3, 0
|
|
# ^-- %hi(loc0 - .tdata - 0x7000)
|
|
# DIS-NEXT: addiu $2, $3, -28672
|
|
# ^-- %lo(loc0 - .tdata - 0x7000)
|
|
|
|
# CHECK: Relocations [
|
|
# CHECK-NEXT: ]
|
|
# CHECK-NOT: Primary GOT
|
|
|
|
.text
|
|
.globl __start
|
|
.type __start,@function
|
|
__start:
|
|
addiu $2, $3, %dtprel_hi(loc0) # R_MIPS_TLS_DTPREL_HI16
|
|
addiu $2, $3, %dtprel_lo(loc0) # R_MIPS_TLS_DTPREL_LO16
|
|
addiu $2, $3, %tprel_hi(loc0) # R_MIPS_TLS_TPREL_HI16
|
|
addiu $2, $3, %tprel_lo(loc0) # R_MIPS_TLS_TPREL_LO16
|
|
|
|
.section .tdata,"awT",%progbits
|
|
loc0:
|
|
.word 0
|