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
38 lines
2.0 KiB
ArmAsm
38 lines
2.0 KiB
ArmAsm
# REQUIRES: riscv
|
|
# REQUIRES: python
|
|
|
|
# This test verifies that disassemble -b prints out the correct bytes and
|
|
# format for standard and unknown riscv instructions of various sizes,
|
|
# and that unknown instructions show opcodes and disassemble as "<unknown>".
|
|
# It also tests that the fdis command from examples/python/filter_disasm.py
|
|
# pipes the disassembly output through a simple filter program correctly.
|
|
|
|
|
|
# RUN: llvm-mc -filetype=obj -mattr=+c --triple=riscv32-unknown-unknown %s -o %t
|
|
# RUN: %lldb -b %t "-o" "disassemble -b -n main" | FileCheck %s
|
|
# RUN: %lldb -b %t -o "command script import %S/../../../examples/python/filter_disasm.py" -o "fdis set %python %S/Inputs/dis_filt.py" -o "fdis -n main" | FileCheck --check-prefix=FILTER %s
|
|
|
|
main:
|
|
addi sp, sp, -0x20 # 16 bit standard instruction
|
|
sw a0, -0xc(s0) # 32 bit standard instruction
|
|
.insn 8, 0x2000200940003F; # 64 bit custom instruction
|
|
.insn 6, 0x021F | 0x00001000 << 32 # 48 bit xqci.e.li rd=8 imm=0x1000
|
|
.insn 4, 0x84F940B # 32 bit xqci.insbi
|
|
.insn 2, 0xB8F2 # 16 bit cm.push
|
|
|
|
# CHECK: [0x0] <+0>: 1101 addi sp, sp, -0x20
|
|
# CHECK-NEXT: [0x2] <+2>: fea42a23 sw a0, -0xc(s0)
|
|
# CHECK-NEXT: [0x6] <+6>: 0940003f 00200020 <unknown>
|
|
# CHECK-NEXT: [0xe] <+14>: 021f 0000 1000 <unknown>
|
|
# CHECK-NEXT: [0x14] <+20>: 084f940b <unknown>
|
|
# CHECK-NEXT: [0x18] <+24>: b8f2 <unknown>
|
|
|
|
# FILTER: Disassembly filter command (fdis) loaded
|
|
# FILTER: [0x0] <+0>: 1101 addi sp, sp, -0x20
|
|
# FILTER-NEXT: [0x2] <+2>: fea42a23 sw a0, -0xc(s0)
|
|
# FILTER-NEXT: [0x6] <+6>: 0940003f 00200020 Fake64
|
|
# FILTER-NEXT: [0xe] <+14>: 021f 0000 1000 <unknown>
|
|
# FILTER-NEXT: [0x14] <+20>: 084f940b <unknown>
|
|
# FILTER-NEXT: [0x18] <+24>: b8f2 <unknown>
|
|
|