diff options
| author | iurysf <98192149+iurysf@users.noreply.github.com> | 2026-11-23 09:12:29 -0300 |
|---|---|---|
| committer | iurysf <98192149+iurysf@users.noreply.github.com> | 2026-11-23 09:32:48 -0300 |
| commit | 5c81e056806ab498c37718a52a720afeee94338b (patch) | |
| tree | 55f58fd972b3ef102fcbedfd6f6b0530e4a3e0f7 /runtime/src/pe_loader.cpp | |
| parent | 1599b382d9fa417050d0f25907e0b5761235af6d (diff) | |
FUZZ-55: Print 32-bit literals for v_frexp_*, v_rcp_f64, v_rsq_f64 and v_sqrt_f64
After merging current main, CPU seeds 1-3 and `--programs 3000 --seed 9` reported
mismatches on v_frexp_mant_f64, v_frexp_exp_i32_f64, v_rsq_f64 and v_sqrt_f64 only,
for example `v_frexp_mant_f64 v[8:9], 0x3470fbc87309e9cc` (expected 7309e9cc 3fe0fbc8,
actual 00000000 3fe9e9cc), and `--oracle gpu --programs 300 --seed 1` also reported
v_rcp_f64 (the CPU run skips it: no OpFDiv in the interpreter). Main's translator now
reads the literal of those forms as the upper half of the f64 operand and takes only its
low 32 bits, which is the ISA rule for a 32-bit literal (measured on gfx1036); the
generator printed a full-width text literal for them. They now get 32-bit literals like
the rounding, add, compare and class forms, so the listings are also valid assembler
input for --oracle hw. v_div_fmas_f64 and v_div_fixup_f64 keep full-width literals:
v_div_fixup_f64 reads a printed 32-bit literal as the low word on main (a 32-bit literal
there mismatches the ISA rule; reported, not worked around).
Checked on origin/main 561b65a83: CPU seeds 1-5 and 7 clean, `--programs 3000 --seed 9`
2737 match / 0 mismatch, a 4000-program run of the affected forms (seed 11) 1980 match /
0 mismatch, and on the RTX 4070 `--oracle gpu` seed 1 (300 programs) 331 / 0 and
`--programs 1500 --seed 9` 1460 / 0. A test pins the literal width per form.
AI-assisted (OpenBot team).
Co-authored-by: OpenBot <335604065+openbotgit[bot]@users.noreply.github.com>
Diffstat (limited to 'runtime/src/pe_loader.cpp')
0 files changed, 0 insertions, 0 deletions