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
59 lines
2.0 KiB
ArmAsm
59 lines
2.0 KiB
ArmAsm
# REQUIRES: mips
|
|
# Check less-significant bit setup for microMIPS PLT.
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux \
|
|
# RUN: -mattr=micromips %S/Inputs/mips-dynamic.s -o %t-dso.o
|
|
# RUN: ld.lld %t-dso.o -shared -soname=t.so -o %t.so
|
|
# RUN: llvm-mc -filetype=obj -triple=mips-unknown-linux \
|
|
# RUN: -mattr=micromips %s -o %t-exe.o
|
|
# RUN: echo "SECTIONS { \
|
|
# RUN: . = 0x20000; .text ALIGN(0x100) : { *(.text) } \
|
|
# RUN: . = 0x20300; .plt : { *(.plt) } \
|
|
# RUN: }" > %t.script
|
|
# RUN: ld.lld %t-exe.o %t.so --script %t.script -o %t.exe
|
|
# RUN: llvm-readelf --symbols --dyn-syms -A %t.exe | FileCheck %s
|
|
# RUN: llvm-objdump --no-print-imm-hex -d --mattr=micromips --no-show-raw-insn %t.exe \
|
|
# RUN: | FileCheck --check-prefix=ASM %s
|
|
|
|
# CHECK: Symbol table '.dynsym'
|
|
# CHECK: Num: Value Size Type Bind Vis Ndx Name
|
|
# CHECK: 1: 00020321 0 FUNC GLOBAL DEFAULT [<other: 0x88>] UND foo0
|
|
|
|
# CHECK: Symbol table '.symtab'
|
|
# CHECK: Num: Value Size Type Bind Vis Ndx Name
|
|
# CHECK: 1: 00020210 0 NOTYPE LOCAL HIDDEN [<other: 0x82>] 8 foo
|
|
# CHECK: 4: 00020200 0 NOTYPE GLOBAL DEFAULT [<other: 0x80>] 8 __start
|
|
# CHECK: 5: 00020320 0 FUNC GLOBAL DEFAULT [<other: 0x88>] UND foo0
|
|
|
|
# CHECK: Primary GOT:
|
|
# CHECK: Local entries:
|
|
# CHECK: Address Access Initial
|
|
# CHECK: -32744(gp) 00020211
|
|
|
|
# CHECK: PLT GOT:
|
|
# CHECK: Entries:
|
|
# CHECK: Address Initial Sym.Val. Type Ndx Name
|
|
# CHECK: 00020301 00020321 FUNC UND foo0
|
|
|
|
# ASM: <__start>:
|
|
# ASM-NEXT: 20200: lw $8, -32744($gp)
|
|
# ASM-NEXT: addi $8, $8, 529
|
|
# ASM-NEXT: lui $8, 2
|
|
# ASM-NEXT: addi $8, $8, 801
|
|
#
|
|
# ASM: <foo>:
|
|
# ASM-NEXT: 20210: jal 0x20320
|
|
|
|
.text
|
|
.set micromips
|
|
.global foo
|
|
.hidden foo
|
|
.global __start
|
|
__start:
|
|
lw $t0,%got(foo)($gp)
|
|
addi $t0,$t0,%lo(foo)
|
|
lui $t0,%hi(foo0)
|
|
addi $t0,$t0,%lo(foo0)
|
|
foo:
|
|
jal foo0
|