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
111 lines
3.6 KiB
ArmAsm
111 lines
3.6 KiB
ArmAsm
# RUN: llvm-mc %s -triple=riscv32 | FileCheck -check-prefixes=ASM %s
|
|
# RUN: llvm-mc %s -triple=riscv64 | FileCheck -check-prefixes=ASM %s
|
|
# RUN: llvm-mc %s -triple=riscv32 -mattr=+relax | FileCheck -check-prefix=ASM %s
|
|
# RUN: llvm-mc %s -triple=riscv64 -mattr=+relax | FileCheck -check-prefix=ASM %s
|
|
# RUN: llvm-mc -filetype=obj -triple riscv32 < %s \
|
|
# RUN: | llvm-objdump -d -M no-aliases - | FileCheck --check-prefixes=DISASM,DISASM-NORELAX %s
|
|
# RUN: llvm-mc -filetype=obj -triple riscv64 < %s \
|
|
# RUN: | llvm-objdump -d -M no-aliases - | FileCheck --check-prefixes=DISASM,DISASM-NORELAX %s
|
|
# RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+relax < %s \
|
|
# RUN: | llvm-objdump -d -M no-aliases - | FileCheck --check-prefixes=DISASM,DISASM-RELAX %s
|
|
# RUN: llvm-mc -filetype=obj -triple riscv64 -mattr=+relax < %s \
|
|
# RUN: | llvm-objdump -d -M no-aliases - | FileCheck --check-prefixes=DISASM,DISASM-RELAX %s
|
|
|
|
# Checks change of options does not cause error: could not find corresponding %pcrel_hi
|
|
# when assembling pseudoinstruction and its extended form. Also checks that we
|
|
# evaluate the correct value for local symbols in such a situation.
|
|
|
|
.option push
|
|
.option norelax
|
|
la a0, a_symbol
|
|
.option pop
|
|
la a1, another_symbol
|
|
|
|
# ASM-LABEL: .Lpcrel_hi0{{>?}}:
|
|
# ASM-NEXT: auipc a0, %pcrel_hi(a_symbol)
|
|
# ASM-NEXT: addi a0, a0, %pcrel_lo(.Lpcrel_hi0)
|
|
# ASM-LABEL: .Lpcrel_hi1{{>?}}:
|
|
# ASM-NEXT: auipc a1, %pcrel_hi(another_symbol)
|
|
# ASM-NEXT: addi a1, a1, %pcrel_lo(.Lpcrel_hi1)
|
|
|
|
# DISASM-LABEL: <.Lpcrel_hi0>:
|
|
# DISASM-NEXT: auipc a0, 0x0
|
|
# DISASM-NEXT: addi a0, a0, 0x0
|
|
# DISASM-LABEL: <.Lpcrel_hi1>:
|
|
# DISASM-NEXT: auipc a1, 0x0
|
|
# DISASM-NEXT: addi a1, a1, 0x0
|
|
|
|
.option push
|
|
.option norelax
|
|
1:auipc a0, %pcrel_hi(a_symbol)
|
|
addi a0, a0, %pcrel_lo(1b)
|
|
.option pop
|
|
2:auipc a1, %pcrel_hi(another_symbol)
|
|
addi a1, a1, %pcrel_lo(2b)
|
|
|
|
# ASM-LABEL: .Ltmp0{{>?}}:
|
|
# ASM-NEXT: auipc a0, %pcrel_hi(a_symbol)
|
|
# ASM-NEXT: addi a0, a0, %pcrel_lo(.Ltmp0)
|
|
# ASM-LABEL: .Ltmp1{{>?}}:
|
|
# ASM-NEXT: auipc a1, %pcrel_hi(another_symbol)
|
|
# ASM-NEXT: addi a1, a1, %pcrel_lo(.Ltmp1)
|
|
|
|
# DISASM-LABEL: .Ltmp0{{>?}}:
|
|
# DISASM-NEXT: auipc a0, 0x0
|
|
# DISASM-NEXT: addi a0, a0, 0x0
|
|
# DISASM-LABEL: .Ltmp1{{>?}}:
|
|
# DISASM-NEXT: auipc a1, 0x0
|
|
# DISASM-NEXT: addi a1, a1, 0x0
|
|
|
|
.option push
|
|
.option norelax
|
|
la a0, a_symbol
|
|
.option pop
|
|
la a1, local_symbol1
|
|
|
|
local_symbol1:
|
|
nop
|
|
|
|
# ASM-LABEL: .Lpcrel_hi2{{>?}}:
|
|
# ASM-NEXT: auipc a0, %pcrel_hi(a_symbol)
|
|
# ASM-NEXT: addi a0, a0, %pcrel_lo(.Lpcrel_hi2)
|
|
# ASM-LABEL: .Lpcrel_hi3{{>?}}:
|
|
# ASM-NEXT: auipc a1, %pcrel_hi(local_symbol1)
|
|
# ASM-NEXT: addi a1, a1, %pcrel_lo(.Lpcrel_hi3)
|
|
|
|
# DISASM-LABEL: .Lpcrel_hi2{{>?}}:
|
|
# DISASM-NEXT: auipc a0, 0x0
|
|
# DISASM-NEXT: addi a0, a0, 0x0
|
|
# DISASM-NORELAX-NEXT: auipc a1, 0x0
|
|
# DISASM-NORELAX-NEXT: addi a1, a1, 0x8
|
|
# DISASM-RELAX-LABEL: .Lpcrel_hi3{{>?}}:
|
|
# DISASM-RELAX-NEXT: auipc a1, 0x0
|
|
# DISASM-RELAX-NEXT: addi a1, a1, 0x0
|
|
|
|
.option push
|
|
.option norelax
|
|
1:auipc a0, %pcrel_hi(a_symbol)
|
|
addi a0, a0, %pcrel_lo(1b)
|
|
.option pop
|
|
2:auipc a1, %pcrel_hi(local_symbol2)
|
|
addi a1, a1, %pcrel_lo(2b)
|
|
|
|
local_symbol2:
|
|
nop
|
|
|
|
# ASM-LABEL: .Ltmp2{{>?}}:
|
|
# ASM-NEXT: auipc a0, %pcrel_hi(a_symbol)
|
|
# ASM-NEXT: addi a0, a0, %pcrel_lo(.Ltmp2)
|
|
# ASM-LABEL: .Ltmp3{{>?}}:
|
|
# ASM-NEXT: auipc a1, %pcrel_hi(local_symbol2)
|
|
# ASM-NEXT: addi a1, a1, %pcrel_lo(.Ltmp3)
|
|
|
|
# DISASM-LABEL: .Ltmp2{{>?}}:
|
|
# DISASM-NEXT: auipc a0, 0x0
|
|
# DISASM-NEXT: addi a0, a0, 0x0
|
|
# DISASM-NORELAX-NEXT: auipc a1, 0x0
|
|
# DISASM-NORELAX-NEXT: addi a1, a1, 0x8
|
|
# DISASM-RELAX-LABEL: .Ltmp3{{>?}}:
|
|
# DISASM-RELAX-NEXT: auipc a1, 0x0
|
|
# DISASM-RELAX-NEXT: addi a1, a1, 0x0
|