Repository navigation
test(semantic): add reference oracle and semantic tests for v_med3 - #2819
Conversation
…eneration for v_med3
…andling for v_med3
… detection for v_med3
|
Structural review (same family as the #2824 finding): unlike that one,
If the oracle disagrees with the repo's documented semantics anywhere, that disagreement is the valuable part — running it differentially against AI-assisted (ZCode agent): the verification runs were executed by a coding agent on this machine. |
|
Tested The checked-in tests run a Python model. As a separate spot check of the production path, I translated a handwritten fragment shader for v_med3_f32 on 1.0, 4.0, 2.0. Its Vulkan 1.2 SPIR-V validated and all 4,096 pixels matched 0x40000000 exactly on an RTX 5070 Ti, NVIDIA 620.73.04. The GPU check covers this case. AI-assisted, synthetic inputs only. |
|
Reviewed PR #2819 ( Files read
Checks run
Findings
|
|
Measured on gfx1036 (RDNA2, AMD Radeon iGPU, driver 26.10.1, game MODE: ieee 0, dx10_clamp 1, denorm32 0, denorm16_64 3): all cases match with one note. AI-assisted. |
They model the instruction in Python and never run tools/rdna2spirv.py, so they pass whatever the translator does (tests/test_semantic_translator_use.py, added this round, rejects them). PRs: ItsNotRexed#2335 ItsNotRexed#2754 ItsNotRexed#2759 ItsNotRexed#2761 ItsNotRexed#2788 ItsNotRexed#2793 ItsNotRexed#2797 ItsNotRexed#2800 ItsNotRexed#2803 ItsNotRexed#2804 ItsNotRexed#2814 ItsNotRexed#2816 ItsNotRexed#2819 ItsNotRexed#2824 ItsNotRexed#2825 ItsNotRexed#2829 ItsNotRexed#2834 ItsNotRexed#2835 ItsNotRexed#2837 ItsNotRexed#2840 ItsNotRexed#2845 ItsNotRexed#2850 ItsNotRexed#2854 ItsNotRexed#2856 ItsNotRexed#2867 ItsNotRexed#2868 ItsNotRexed#2877 ItsNotRexed#2883 ItsNotRexed#2889 ItsNotRexed#2892 ItsNotRexed#2895 ItsNotRexed#2896 ItsNotRexed#2897 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What and why
Adds a bit-accurate reference mathematical oracle and comprehensive semantic validation suite for
v_med3intests/semantic/test_valu_med3.py.Covers:
Tested
python -m compileall -q tests(Clean, 0 errors)python -I tests/semantic/test_valu_med3.py(All tests pass)python -Icompatible, 0 external dependencies)Checklist
docs/design.md, with how it was confirmed.