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
79 lines
2.0 KiB
ArmAsm
79 lines
2.0 KiB
ArmAsm
# REQUIRES: riscv
|
|
# RUN: rm -rf %t && split-file %s %t && cd %t
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=riscv32-unknown-elf -mattr=+relax a.s -o rv32.o
|
|
# RUN: llvm-mc -filetype=obj -triple=riscv64-unknown-elf -mattr=+relax a.s -o rv64.o
|
|
|
|
# RUN: ld.lld --relax-gp --undefined=__global_pointer$ --defsym baz=420 rv32.o lds -o rv32
|
|
# RUN: ld.lld --relax-gp --undefined=__global_pointer$ --defsym baz=420 rv64.o lds -o rv64
|
|
# RUN: llvm-objdump -td -M no-aliases --no-show-raw-insn rv32 | FileCheck %s
|
|
# RUN: llvm-objdump -td -M no-aliases --no-show-raw-insn rv64 | FileCheck %s
|
|
|
|
# CHECK: 00000040 l .text {{0*}}0 a
|
|
|
|
# CHECK-NOT: lui
|
|
# CHECK: addi a0, gp, -0x800
|
|
# CHECK-NEXT: lw a0, -0x800(gp)
|
|
# CHECK-NEXT: sw a0, -0x800(gp)
|
|
# CHECK-NOT: lui
|
|
# CHECK-NEXT: addi a0, gp, 0x7ff
|
|
# CHECK-NEXT: lb a0, 0x7ff(gp)
|
|
# CHECK-NEXT: sb a0, 0x7ff(gp)
|
|
# CHECK-NEXT: lui a0, 0x201
|
|
# CHECK-NEXT: addi a0, a0, 0x0
|
|
# CHECK-NEXT: lw a0, 0x0(a0)
|
|
# CHECK-NEXT: sw a0, 0x0(a0)
|
|
# CHECK-NOT: lui
|
|
# CHECK: addi a0, zero, 0x0
|
|
# CHECK-NEXT: lw a0, 0x0(zero)
|
|
# CHECK-NEXT: sw a0, 0x0(zero)
|
|
# CHECK-NOT: lui
|
|
# CHECK: addi a0, zero, 0x1a4
|
|
# CHECK-NEXT: lw a0, 0x1a4(zero)
|
|
# CHECK-NEXT: sw a0, 0x1a4(zero)
|
|
# CHECK-EMPTY:
|
|
# CHECK-NEXT: <a>:
|
|
# CHECK-NEXT: addi a0, a0, 0x1
|
|
|
|
#--- a.s
|
|
.global _start
|
|
_start:
|
|
lui a0, %hi(foo)
|
|
addi a0, a0, %lo(foo)
|
|
lw a0, %lo(foo)(a0)
|
|
sw a0, %lo(foo)(a0)
|
|
lui a0, %hi(bar)
|
|
addi a0, a0, %lo(bar)
|
|
lb a0, %lo(bar)(a0)
|
|
sb a0, %lo(bar)(a0)
|
|
lui a0, %hi(norelax)
|
|
addi a0, a0, %lo(norelax)
|
|
lw a0, %lo(norelax)(a0)
|
|
sw a0, %lo(norelax)(a0)
|
|
lui a0, %hi(undefined_weak)
|
|
addi a0, a0, %lo(undefined_weak)
|
|
lw a0, %lo(undefined_weak)(a0)
|
|
sw a0, %lo(undefined_weak)(a0)
|
|
lui a0, %hi(baz)
|
|
addi a0, a0, %lo(baz)
|
|
lw a0, %lo(baz)(a0)
|
|
sw a0, %lo(baz)(a0)
|
|
a:
|
|
addi a0, a0, 1
|
|
|
|
.section .sdata,"aw"
|
|
foo:
|
|
.word 0
|
|
.space 4091
|
|
bar:
|
|
.byte 0
|
|
norelax:
|
|
.word 0
|
|
.weak undefined_weak
|
|
|
|
#--- lds
|
|
SECTIONS {
|
|
.text : {*(.text) }
|
|
.sdata 0x200000 : { }
|
|
}
|