Files
mandy/tools
mcpeacebir-lang ea765a7391 tools: valu_literal64_probe measures how a 32-bit VALU literal is extended in a 64-bit integer operand (HW-VALU-LITERAL64-EXT)
The "32-bit literal source of a signed 64-bit vector op" row of
docs/design.md said its rule (sign-extend in an i64 operand, zero-extend in a
u64/b64 one, Gen.valu_imm_i64) was not measured on hardware.
tools/valu_literal64_probe.py runs 21 op forms (v_cmp/v_cmpx lt/gt i64/u64,
v_ashrrev_i64, v_lshrrev_b64, v_lshlrev_b64, v_mad_i64_i32, v_mad_u64_u32)
x the literals 0xffffff9c, 0x80000000 and 0x7fffffff through tools/hw_oracle
in wave32 and wave64. On an RX 7800 XT (gfx1101) every result follows the
row's rule; the row now says so and that RDNA2 is not measured.

tests/test_valu_literal64_probe.py is CPU-only; its assembler check runs
when LEONIDA_AMD_CLANG has llvm-mc beside it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 15:16:28 +03:00
..
…
2026-11-23 17:07:05 -05:00
2026-11-23 17:08:54 -05:00
2026-11-23 21:45:02 +00:00