Repository navigation
Conversation
s_nand_b32, s_nor_b32 and s_xnor_b32 were refused while their b64 forms and s_andn2_b32/s_orn2_b32 were translated. Add them to SCA with the 64-bit shapes and the same SCC rule (result != 0). Refs R0Y00#1919.
|
Closing: #1925 by @MasterDomino is the implementation, and the issue description says "I'd like to take this; PR to follow" — I Their branch also does more than mine: 11 operand forms × 2,184 value pairs against an integer reference for result and SCC, What I will do instead: run their branch through the Two corrections to my earlier comments here, so the thread is not misleading:
|
Implements #1919.
Change
tools/startup/gfx2hlsl.py, three entries inSCA, with the shapes the 64-bit forms already use:Nothing else moves:
s_andn2_b32/s_orn2_b32/s_not_b32and every b64 form stay as they are.Tested
The new cases build SOP2 words from the decoder table (
s_nand_b320x18,s_nor_b320x1a,s_xnor_b320x1c) andtranslate them:
(I keep the assertion on the shape —
s28 = ~(plus the operator, and the exact SCC line — because this fixture's stagefolds
s5to a constant, which is not what the case is about.s_and_b32is asserted separately as the unchanged neighbour,with no complement.)
Fail-first
Removing one entry at a time from
SCA:so each of the three is needed on its own; the fixture does not pass because the neighbours happen to be present.
Scope
Two files:
+2lines in the translator table,+16in the existing scalar check. No new file, no CMake change, no draw mode.Notes