mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-26 03:39:52 +00:00
isa, decoder, shader: the six VOP1 integer forms through the semantic registry (#215)
The B3 oracle (#309) checks v_not_b32, v_bfrev_b32, v_ffbh_u32, v_ffbl_b32, v_ffbh_i32 and v_swap_b32 against the guide on both CPU interpreters, but its native Metal half was skipped because the translator did not accept the forms. This adds the VOP1 registry file and operand rule, decoder dispatch, IR and MSL lowering (v_swap_b32 writes both VGPRs, each merged under EXEC), fixture and goldens, and removes the oracle's skip from scripts/test-gpu.sh. A new CPU test checks that the compiler accepts every case of the oracle and rejects each of its rejections at the same word. v_mov_b32 stays hand-written. Signed-off-by: elforeign <324243036+elforeign@users.noreply.github.com>
This commit is contained in:
1 parent
7504a5d48d
commit
947d6e4eaf
25 files changed
+1392
-91
No files matched your search
@@ -25,6 +25,7 @@ either path. The [changelog](../CHANGELOG.md) records notable changes.
|
||||
- [Semantic coverage](shaders/semantic-coverage.md) — Generated per-family counts of identified, declared, decoded, lowered and verified gfx1030 forms.
|
||||
- [SOP2 scalar ALU](shaders/scalar-alu.md) — Supported scalar add, subtract and bitwise forms, their SCC rules and sources.
|
||||
- [Semantic registry](shaders/semantic-registry.md) — How to add an instruction form: registry fields, validation, generation and the independence rule.
|
||||
- [VOP1 vector unary and swap](shaders/vector-unary.md) — Wave32 integer bit operations, register exchange, and operand limits.
|
||||
- [VOPC integer compares](shaders/vector-compare.md) — Wave32 compare forms, the VCC/EXEC contract, runtime `s_cbranch_vccz` and the Metal mapping.
|
||||
- [Metal Shading Language generation](shaders/msl.md) and [independent CPU reference](shaders/reference-interpreter.md) — Translation rules and separate CPU execution models.
|
||||
|
||||
|
||||
Reference in new issue
Block a user