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
62 lines
1.9 KiB
ArmAsm
62 lines
1.9 KiB
ArmAsm
# RUN: llvm-mc %s -triple=riscv32 -M no-aliases -show-encoding \
|
|
# RUN: | FileCheck -check-prefixes=CHECK-ASM,CHECK-ASM-AND-OBJ %s
|
|
# RUN: llvm-mc -filetype=obj -triple=riscv32 < %s \
|
|
# RUN: | llvm-objdump -M no-aliases --no-print-imm-hex -d -r - \
|
|
# RUN: | FileCheck -check-prefixes=CHECK-OBJ,CHECK-ASM-AND-OBJ %s
|
|
|
|
# CHECK-ASM-AND-OBJ: addi a0, a1, -1
|
|
# CHECK-ASM: encoding: [0x13,0x85,0xf5,0xff]
|
|
addi a0, a1, 4294967295 # 0xffffffff
|
|
# CHECK-ASM-AND-OBJ: ori a2, a3, -2048
|
|
# CHECK-ASM: encoding: [0x13,0xe6,0x06,0x80]
|
|
ori a2, a3, 0xfffff800
|
|
# CHECK-ASM-AND-OBJ: lw a1, -1621(a2)
|
|
# CHECK-ASM: encoding: [0x83,0x25,0xb6,0x9a]
|
|
lw a1, 0xfffff9ab(a2)
|
|
# CHECK-ASM-AND-OBJ: sw a1, -8(a2)
|
|
# CHECK-ASM: encoding: [0x23,0x2c,0xb6,0xfe]
|
|
sw a1, 0xfffffff8(a2)
|
|
|
|
## Branch and Jump immediates are relative but printed as their absolute address
|
|
## when disassembling.
|
|
|
|
# CHECK-ASM: beq t0, t1, -4096
|
|
# CHECK-ASM: encoding: [0x63,0x80,0x62,0x80]
|
|
# CHECK-OBJ: beq t0, t1, 0xfffff010
|
|
beq t0, t1, 0xfffff000
|
|
|
|
# CHECK-ASM: bne t1, t2, -4082
|
|
# CHECK-ASM: encoding: [0x63,0x17,0x73,0x80]
|
|
# CHECK-OBJ: bne t1, t2, 0xfffff022
|
|
bne t1, t2, 0xfffff00e
|
|
|
|
# CHECK-ASM: beq t2, zero, -3550
|
|
# CHECK-ASM: encoding: [0x63,0x81,0x03,0xa2]
|
|
# CHECK-OBJ: beq t2, zero, 0xfffff23a
|
|
beqz t2, 0xfffff222
|
|
|
|
# CHECK-ASM: .insn b 99, 0, a0, a1, -3004
|
|
# CHECK-ASM: encoding: [0x63,0x02,0xb5,0xc4]
|
|
# CHECK-OBJ: beq a0, a1, 0xfffff460
|
|
.insn b BRANCH, 0, a0, a1, 0xfffff444
|
|
|
|
# CHECK-ASM: jal ra, -2458
|
|
# CHECK-ASM: encoding: [0xef,0xf0,0x6f,0xe6]
|
|
# CHECK-OBJ: jal ra, 0xfffff686
|
|
jal ra, 0xfffff666
|
|
|
|
# CHECK-ASM: jal ra, -1912
|
|
# CHECK-ASM: encoding: [0xef,0xf0,0x9f,0x88]
|
|
# CHECK-OBJ: jal ra, 0xfffff8ac
|
|
jal 0xfffff888
|
|
|
|
# CHECK-ASM: jal zero, -1366
|
|
# CHECK-ASM: encoding: [0x6f,0xf0,0xbf,0xaa]
|
|
# CHECK-OBJ: jal zero, 0xfffffad2
|
|
j 0xfffffaaa
|
|
|
|
# CHECK-ASM: .insn j 111, a0, -820
|
|
# CHECK-ASM: encoding: [0x6f,0x65,0xe6,0xff]
|
|
# CHECK-OBJ: jal a0, 0xfff6682a
|
|
.insn j JAL, a0, 0xfffffccc
|