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
53 lines
1.5 KiB
ArmAsm
53 lines
1.5 KiB
ArmAsm
# REQUIRES: mips
|
|
# Check R_MIPS_HI16 / LO16 relocations calculation.
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux %s -o %t.o
|
|
# RUN: echo "SECTIONS { . = 0x20000; .text ALIGN(0x1000) : { *(.text) } }" > %t.script
|
|
# RUN: ld.lld %t.o --script %t.script -o %t.exe
|
|
# RUN: llvm-objdump --no-print-imm-hex -d -t --no-show-raw-insn %t.exe | FileCheck %s
|
|
|
|
.text
|
|
.globl __start
|
|
__start:
|
|
lui $t0,%hi(__start)
|
|
lui $t1,%hi(g1)
|
|
addi $t0,$t0,%lo(__start+4)
|
|
addi $t0,$t0,%lo(g1+8)
|
|
|
|
lui $t0,%hi(l1+0x10000)
|
|
lui $t1,%hi(l1+0x20000)
|
|
addi $t0,$t0,%lo(l1+(-4))
|
|
|
|
.data
|
|
.type l1,@object
|
|
.size l1,4
|
|
l1:
|
|
.word 0
|
|
|
|
.globl g1
|
|
.type g1,@object
|
|
.size g1,4
|
|
g1:
|
|
.word 0
|
|
|
|
# CHECK: SYMBOL TABLE:
|
|
# CHECK: 0021020 l O .data 00000004 l1
|
|
# CHECK: 0021000 g .text 00000000 __start
|
|
# CHECK: 0021024 g O .data 00000004 g1
|
|
|
|
# CHECK: <__start>:
|
|
# CHECK-NEXT: 21000: lui $8, 2
|
|
# ^-- %hi(__start+4)
|
|
# CHECK-NEXT: 21004: lui $9, 2
|
|
# ^-- %hi(g1+8)
|
|
# CHECK-NEXT: 21008: addi $8, $8, 4100
|
|
# ^-- %lo(__start+4)
|
|
# CHECK-NEXT: 2100c: addi $8, $8, 4140
|
|
# ^-- %lo(g1+8)
|
|
# CHECK-NEXT: 21010: lui $8, 3
|
|
# ^-- %hi(l1+0x10000-4)
|
|
# CHECK-NEXT: 21014: lui $9, 4
|
|
# ^-- %hi(l1+0x20000-4)
|
|
# CHECK-NEXT: 21018: addi $8, $8, 4124
|
|
# ^-- %lo(l1-4)
|