Files
TheRock/compiler/amd-llvm/llvm/test/tools/llvm-objdump/ELF/LoongArch/branches.s
T
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

77 lines
1.6 KiB
ArmAsm

# RUN: llvm-mc --triple=loongarch32 --filetype=obj < %s | \
# RUN: llvm-objdump -d --no-show-raw-insn - | FileCheck %s
# RUN: llvm-mc --triple=loongarch64 --filetype=obj < %s | \
# RUN: llvm-objdump -d --no-show-raw-insn - | FileCheck %s
# CHECK-LABEL: <foo>:
foo:
# CHECK: beq $a0, $a1, 108 <foo+0x6c>
beq $a0, $a1, .Llocal
# CHECK: bne $a0, $a1, 104 <foo+0x6c>
bne $a0, $a1, .Llocal
# CHECK: blt $a0, $a1, 100 <foo+0x6c>
blt $a0, $a1, .Llocal
# CHECK: bltu $a0, $a1, 96 <foo+0x6c>
bltu $a0, $a1, .Llocal
# CHECK: bge $a0, $a1, 92 <foo+0x6c>
bge $a0, $a1, .Llocal
# CHECK: bgeu $a0, $a1, 88 <foo+0x6c>
bgeu $a0, $a1, .Llocal
# CHECK: beqz $a0, 84 <foo+0x6c>
beqz $a0, .Llocal
# CHECK: bnez $a0, 80 <foo+0x6c>
bnez $a0, .Llocal
# CHECK: bceqz $fcc6, 76 <foo+0x6c>
bceqz $fcc6, .Llocal
# CHECK: bcnez $fcc6, 72 <foo+0x6c>
bcnez $fcc6, .Llocal
# CHECK: beq $a0, $a1, 76 <bar>
beq $a0, $a1, bar
# CHECK: bne $a0, $a1, 72 <bar>
bne $a0, $a1, bar
# CHECK: blt $a0, $a1, 68 <bar>
blt $a0, $a1, bar
# CHECK: bltu $a0, $a1, 64 <bar>
bltu $a0, $a1, bar
# CHECK: bge $a0, $a1, 60 <bar>
bge $a0, $a1, bar
# CHECK: bgeu $a0, $a1, 56 <bar>
bgeu $a0, $a1, bar
# CHECK: beqz $a0, 52 <bar>
beqz $a0, bar
# CHECK: bnez $a0, 48 <bar>
bnez $a0, bar
# CHECK: bceqz $fcc6, 44 <bar>
bceqz $fcc6, bar
# CHECK: bcnez $fcc6, 40 <bar>
bcnez $fcc6, bar
# CHECK: b 28 <foo+0x6c>
b .Llocal
# CHECK: b 32 <bar>
b bar
# CHECK: bl 20 <foo+0x6c>
bl .Llocal
# CHECK: bl 24 <bar>
bl bar
# CHECK: jirl $zero, $a0, 4{{$}}
jirl $zero, $a0, 4
# CHECK: jirl $ra, $a0, 4{{$}}
jirl $ra, $a0, 4
# CHECK: ret
ret
.Llocal:
# CHECK: 6c: nop
# CHECK: nop
nop
nop
# CHECK-LABEL: <bar>:
bar:
# CHECK: 74: nop
nop