Skip to content

Preserve AArch64 immediate operands when checking assembly artifact expectations #563

Closed

Description

@LunaStev

_assembly_code_lines treats every # as the start of a comment. In AArch64 assembly, # also introduces immediate operands. A line such as add x0, x0, #16 is reduced to add x0, x0,, so asm-contains/asm-not-contains checks cannot reliably inspect its immediate. The same helper is used regardless of output target.

Code evidence:

Acceptance:

  • Make comment handling aware of the target assembly dialect, preserving AArch64 # immediates while excluding actual comments.
  • Add direct Python fixtures for immediate-bearing AArch64 instructions, comments containing fake instructions and existing x86/RISC-V/LoongArch syntax.
  • Pass sufficient target information through artifact validation instead of guessing from a token alone.
  • Keep literal pattern matching and existing directive/label filtering behavior deliberate.

Audit status: static source inspection against canonical master ea74c2dafc31da876e5561f2d176ba719f5a0458 on 2026-09-10. No compiler build, test execution, implementation change or local reproduction was performed for this report. The examples describe the source-derived behavior to verify when implementing the fix.

Activity

  1. added
    bug
    help wanted
    on Sep 10, 2026
  2. added a commit that references this issue on Sep 11, 2026
    ecb1637
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bughelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions