Repository navigation
test(semantic): add translator tests for v_ceil_f32 - #5738
slopgobblercobbler wants to merge 12 commits into
Conversation
…odel for v_ceil_f32
…ions for v_ceil_f32
…king for v_ceil_f32
…on for v_ceil_f32
…eneration for v_ceil_f32
…andling for v_ceil_f32
… detection for v_ceil_f32
|
Tested
|
Kam471
left a comment
There was a problem hiding this comment.
Reviewed head 4308656 (base 561b65a).
git diff --checkclean.python tests/semantic/test_valu_ceil_f32_hw.py-> Ran 14 tests, OK.- Independent bit-level oracle; denormal, NaN/Inf, +/-0 cases; AST/E64/chained/aliasing/status coverage; syntax rejection; and a floor-instead-of-ceil mutation test.
Verdict: merge. Minor overlap: #5732's tests/semantic/test_valu_f32_unary.py already samples v_ceil_f32; different file, no conflict.
Address maintainer feedback: expand translator-backed execution coverage via support.translate_lines and support.mrt0_words so Ceil->Floor mutations in tools/rdna2spirv.py are caught. - Drop unused warnings, rdna2spirv, and spirv_mini_interp imports - Add test_translator_emits_ceil_not_floor asserting OpExtInst Ceil - Add test_translator_positive_fractional_inputs and negative_fractional_inputs - Add test_translator_integral_values_unchanged - Add test_translator_special_values_passthrough and signed_zeros_passthrough - Add test_translator_mutation_ceil_to_floor_caught verifying floor divergence - Add test_translator_clamp_modifier and e64 neg modifier tests - Update test_mutation_detection_floor_instead_of_ceil with translated execution All 23 tests pass.
|
Tested
No game files. AI-assisted (Claude Code). |
|
Tested
No game files. AI-assisted (Claude Code). |
|
Tested
AI-assisted (Claude Code). |
TEST validation — ApproveValidated on CPU (no GPU, no game files). All 24 tests pass. Translator coverage: Yes — hand-written RDNA2 shader assembly translated through Validation: Passed on Windows 11 (CPython 3.14.3), Windows Server 2022 (CPython 3.13.12), Linux Arch (CPython 3.14). Reviewer Kam471 gave explicit "Verdict: merge". Recommendation: Approve / merge. |
sds-228
left a comment
There was a problem hiding this comment.
Focused semantic suite passes 24/24 at this head, including the built-in mutation check. Special values, subnormals and signed zeros are covered, and the earlier reviewer's overlap note does not conflict.
AI-assisted (OpenCode).
|
Tested
Since several test-only PRs in this family pass even with the instruction's lowering broken (#5642, #5463), this one is worth distinguishing: it is sensitive to the translator's result. Independent check (not the author). Run by an AI agent (DeepSeek V4.1 Flash) and re-run by the orchestrating session (Claude Code) before posting; coordination: #8504. |
What
Adds translator-backed regression tests for
v_ceil_f32intests/semantic/test_valu_ceil_f32_hw.py.Covers:
tools/rdna2spirv.pyspirv_mini_interpv_cmp_eq_f32) and negative syntax rejection controlsTested
python -I)python -I tests/test_semantic_translator_use.py(Passes translator reachability check)python -I tests/semantic/test_valu_ceil_f32_hw.py(All tests passed, OK)unittest,struct,math)upstream/main