Files
TheRock/compiler/amd-llvm/llvm/test/MC/X86/disassemble-zeroes.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

80 lines
3.1 KiB
ArmAsm

// RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown %s -o %t
// RUN: llvm-objdump -d %t | FileCheck %s --check-prefix=NODISASM
// The exact rules of skipping the bytes you can find in the code.
// This test checks that we follow these rules and can force
// dissasembly of zero blocks with the -z and --disassemble-zeroes options.
// NODISASM: 0000000000000000 <main>:
// NODISASM-NEXT: 0: 00 00 addb %al, (%rax)
// NODISASM-NEXT: 2: 00 00 addb %al, (%rax)
// NODISASM-NEXT: 4: 00 00 addb %al, (%rax)
// NODISASM-NEXT: 6: 00 90 00 00 00 00 addb %dl, (%rax)
// NODISASM-NEXT: ...
// NODISASM-NEXT: 20: 90 nop
// NODISASM-NEXT: ...
// NODISASM: 0000000000000031 <foo>:
// NODISASM-NEXT: 31: 00 00 addb %al, (%rax)
// NODISASM-NEXT: 33: 00 00 addb %al, (%rax)
// NODISASM: 0000000000000035 <bar>:
// NODISASM-NEXT: ...
// Check that with -z we disassemble blocks of zeroes.
// RUN: llvm-objdump -d -z %t | FileCheck %s --check-prefix=DISASM
// DISASM: 0000000000000000 <main>:
// DISASM-NEXT: 0: 00 00 addb %al, (%rax)
// DISASM-NEXT: 2: 00 00 addb %al, (%rax)
// DISASM-NEXT: 4: 00 00 addb %al, (%rax)
// DISASM-NEXT: 6: 00 90 00 00 00 00 addb %dl, (%rax)
// DISASM-NEXT: c: 00 00 addb %al, (%rax)
// DISASM-NEXT: e: 00 00 addb %al, (%rax)
// DISASM-NEXT: 10: 00 00 addb %al, (%rax)
// DISASM-NEXT: 12: 00 00 addb %al, (%rax)
// DISASM-NEXT: 14: 00 00 addb %al, (%rax)
// DISASM-NEXT: 16: 00 00 addb %al, (%rax)
// DISASM-NEXT: 18: 00 00 addb %al, (%rax)
// DISASM-NEXT: 1a: 00 00 addb %al, (%rax)
// DISASM-NEXT: 1c: 00 00 addb %al, (%rax)
// DISASM-NEXT: 1e: 00 00 addb %al, (%rax)
// DISASM-NEXT: 20: 90 nop
// DISASM-NEXT: 21: 00 00 addb %al, (%rax)
// DISASM-NEXT: 23: 00 00 addb %al, (%rax)
// DISASM-NEXT: 25: 00 00 addb %al, (%rax)
// DISASM-NEXT: 27: 00 00 addb %al, (%rax)
// DISASM-NEXT: 29: 00 00 addb %al, (%rax)
// DISASM-NEXT: 2b: 00 00 addb %al, (%rax)
// DISASM-NEXT: 2d: 00 00 addb %al, (%rax)
// DISASM-NEXT: 2f: 00 00 addb %al, (%rax)
// DISASM: 0000000000000031 <foo>:
// DISASM-NEXT: 31: 00 00 addb %al, (%rax)
// DISASM-NEXT: 33: 00 00 addb %al, (%rax)
// DISASM: 0000000000000035 <bar>:
// DISASM-NEXT: 35: 00 00 addb %al, (%rax)
// DISASM-NEXT: 37: 00 00 addb %al, (%rax)
// DISASM-NEXT: 39: 00 00 addb %al, (%rax)
// DISASM-NEXT: 3b: 00 00 addb %al, (%rax)
// Check that --disassemble-zeroes work as alias for -z.
// RUN: llvm-objdump -d --disassemble-zeroes %t | FileCheck %s --check-prefix=DISASM
.text
.globl main
.type main, @function
main:
.long 0
.byte 0
.byte 0
.byte 0
nop
.quad 0
.quad 0
.quad 0
nop
.quad 0
.quad 0
foo:
.long 0
bar:
.quad 0