Files
TheRock/compiler/amd-llvm/llvm/test/tools/llvm-objdump/ELF/RISCV/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

87 lines
1.6 KiB
ArmAsm

# RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+c < %s | \
# RUN: llvm-objdump -d -M no-aliases --no-show-raw-insn - | \
# RUN: FileCheck %s
# CHECK-LABEL: <foo>:
foo:
# CHECK: beq t0, t1, 0x58 <foo+0x58>
beq t0, t1, .Llocal
# CHECK: bne t0, t1, 0x58 <foo+0x58>
bne t0, t1, .Llocal
# CHECK: blt t0, t1, 0x58 <foo+0x58>
blt t0, t1, .Llocal
# CHECK: bge t0, t1, 0x58 <foo+0x58>
bge t0, t1, .Llocal
# CHECK: bltu t0, t1, 0x58 <foo+0x58>
bltu t0, t1, .Llocal
# CHECK: bgeu t0, t1, 0x58 <foo+0x58>
bgeu t0, t1, .Llocal
# CHECK: c.beqz a0, 0x58 <foo+0x58>
beq a0, zero, .Llocal
# CHECK: c.bnez a0, 0x58 <foo+0x58>
bne a0, zero, .Llocal
# CHECK: beq t0, t1, 0x60 <bar>
beq t0, t1, bar
# CHECK: bne t0, t1, 0x60 <bar>
bne t0, t1, bar
# CHECK: blt t0, t1, 0x60 <bar>
blt t0, t1, bar
# CHECK: bge t0, t1, 0x60 <bar>
bge t0, t1, bar
# CHECK: bltu t0, t1, 0x60 <bar>
bltu t0, t1, bar
# CHECK: bgeu t0, t1, 0x60 <bar>
bgeu t0, t1, bar
# CHECK: c.beqz a0, 0x60 <bar>
beq a0, zero, bar
# CHECK: c.bnez a0, 0x60 <bar>
bne a0, zero, bar
# CHECK: jal t0, 0x58 <foo+0x58>
jal t0, .Llocal
# CHECK: c.jal 0x58 <foo+0x58>
c.jal .Llocal
# CHECK: c.j 0x58 <foo+0x58>
c.j .Llocal
# CHECK: jal t0, 0x60 <bar>
jal t0, bar
# CHECK: c.jal 0x60 <bar>
c.jal bar
# CHECK: c.j 0x60 <bar>
c.j bar
# CHECK: auipc ra, 0x0
# CHECK: jalr ra, 0x10(ra) <foo+0x58>
call .Llocal
# CHECK: auipc ra, 0x0
# CHECK: jalr ra, 0x10(ra) <bar>
call bar
.Llocal:
# CHECK: 58: c.nop
# CHECK: c.nop
# CHECK: c.nop
# CHECK: c.nop
nop
nop
nop
nop
# CHECK-LABEL: <bar>:
bar:
# CHECK: 60: c.nop
nop
# CHECK-LABEL: 00011000 <far>:
.org 0x11000
far:
# CHECK: jalr ra, 0x0(ra) <foo>
call foo