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
60 lines
1.9 KiB
ArmAsm
60 lines
1.9 KiB
ArmAsm
# RUN: llvm-mc --triple=loongarch64 --mattr=-relax %s \
|
|
# RUN: | FileCheck --check-prefix=CHECK-ASM %s
|
|
# RUN: llvm-mc --triple=loongarch64 --mattr=-relax --filetype=obj %s \
|
|
# RUN: | llvm-readobj -r - | FileCheck --check-prefix=CHECK-RELOC %s
|
|
|
|
## Test the operation of the push and pop assembler directives when
|
|
## using .option relax. Checks that using .option pop correctly restores
|
|
## all target features to their state at the point where .option pop was
|
|
## last used.
|
|
|
|
# CHECK-ASM: .option push
|
|
.option push # relax = false
|
|
|
|
# CHECK-ASM: .option relax
|
|
.option relax # relax = true
|
|
|
|
# CHECK-ASM: pcalau12i $a0, %pc_hi20(sym1)
|
|
# CHECK-ASM-NEXT: addi.d $a0, $a0, %pc_lo12(sym1)
|
|
# CHECK-RELOC: R_LARCH_PCALA_HI20 sym1 0x0
|
|
# CHECK-RELOC-NEXT: R_LARCH_RELAX - 0x0
|
|
# CHECK-RELOC-NEXT: R_LARCH_PCALA_LO12 sym1 0x0
|
|
# CHECK-RELOC-NEXT: R_LARCH_RELAX - 0x0
|
|
la.pcrel $a0, sym1
|
|
|
|
# CHECK-ASM: .option push
|
|
.option push # relax = true
|
|
|
|
# CHECK-ASM: .option norelax
|
|
.option norelax # relax = false
|
|
|
|
# CHECK-ASM: pcalau12i $a0, %pc_hi20(sym2)
|
|
# CHECK-ASM-NEXT: addi.d $a0, $a0, %pc_lo12(sym2)
|
|
# CHECK-RELOC-NEXT: R_LARCH_PCALA_HI20 sym2 0x0
|
|
# CHECK-RELOC-NOT: R_LARCH_RELAX - 0x0
|
|
# CHECK-RELOC-NEXT: R_LARCH_PCALA_LO12 sym2 0x0
|
|
# CHECK-RELOC-NOT: R_LARCH_RELAX - 0x0
|
|
la.pcrel $a0, sym2
|
|
|
|
# CHECK-ASM: .option pop
|
|
.option pop # relax = true
|
|
|
|
# CHECK-ASM: pcalau12i $a0, %pc_hi20(sym3)
|
|
# CHECK-ASM-NEXT: addi.d $a0, $a0, %pc_lo12(sym3)
|
|
# CHECK-RELOC: R_LARCH_PCALA_HI20 sym3 0x0
|
|
# CHECK-RELOC-NEXT: R_LARCH_RELAX - 0x0
|
|
# CHECK-RELOC-NEXT: R_LARCH_PCALA_LO12 sym3 0x0
|
|
# CHECK-RELOC-NEXT: R_LARCH_RELAX - 0x0
|
|
la.pcrel $a0, sym3
|
|
|
|
# CHECK-ASM: .option pop
|
|
.option pop # relax = false
|
|
|
|
la.pcrel $a0, sym4
|
|
# CHECK-ASM: pcalau12i $a0, %pc_hi20(sym4)
|
|
# CHECK-ASM-NEXT: addi.d $a0, $a0, %pc_lo12(sym4)
|
|
# CHECK-RELOC-NEXT: R_LARCH_PCALA_HI20 sym4 0x0
|
|
# CHECK-RELOC-NOT: R_LARCH_RELAX - 0x0
|
|
# CHECK-RELOC-NEXT: R_LARCH_PCALA_LO12 sym4 0x0
|
|
# CHECK-RELOC-NOT: R_LARCH_RELAX - 0x0
|