Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/design.md

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion runtime/test/shaders/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ def not_found_message(build, missing):
("cs_dpp_bank", [0xffffffff, 0xfffffffe, 0xfffffffd, 0xfffffffc, 7, 7, 7, 7]),
("cs_dpp_fi", [1, 2, 3, 0x7777, 5, 6, 7, 0x7777]),
# a VOPC compare with a DPP src0: 1 for the pair compare, 2 for the dpp8 one (cs_dpp_cmp.asm header)
("cs_dpp_cmp", [3, 2, 3, 2, 1, 0, 1, 0])]
("cs_dpp_cmp", [3, 2, 3, 2, 1, 0, 1, 0]),
# v_cmpx with a DPP src0: 1 where the plain compare keeps the lane, 2 for the negated one (cs_dpp_cmpx.asm)
("cs_dpp_cmpx", [1, 1, 0, 0, 3, 3, 2, 2])]
WAVE32_DUMPS += tuple(n for n, _ in CS_DPP)
WAVE32_LANE_DUMPS += tuple(n for n, _ in CS_DPP)
CS_DUMPS = [*CS_DPP, ("cs_smem_vcc_base", CS_SMEM_VCC), ("cs_store", CS_STORE), ("cs_smem_soffset_imm", CS_SMEM),
Expand Down
24 changes: 24 additions & 0 deletions runtime/test/shaders/cs_dpp_cmpx.asm
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
; v_cmpx in DPP form (SHADER-VOPCX-DPP): src0 is read from the permuted lane, src1 from the lane itself, and the result
; goes to EXEC. v1 = float(lane - 4). Both compares take src0 from the other half of each quad (quad_perm [2,3,0,1],
; with bound_ctrl:1 and fi:1, the form the game's pixel shaders use). The first keeps a lane where
; "neighbour > self": lanes 0, 1, 4, 5 of each 8. The second negates src1 ("neighbour > -self"): lanes 4-7 of the first
; 8 and every lane after. out = (first keeps the lane ? 1 : 0) + (second keeps it ? 2 : 0), EXEC restored in between.
; Run: vk_compute_test cs_dpp_cmpx.spv 1 dump -> out[0..7] = 1 1 0 0 3 3 2 2
; llvm-mc assembles neither compare for gfx1013 ("dpp variant of this instruction is not supported"), so the GPU
; test takes this file's text as its listing; tools/shader_disasm.py prints the same lines for the encoded words.
; run_gpu_tests: text only, llvm-mc has no gfx1013 encoding for an instruction here
; regen_fixtures: this source has a translator fixture in tests/semantic/fixtures/disasm
v_mbcnt_lo_u32_b32 v0, -1, 0
v_add_nc_u32 v7, -4, v0
v_cvt_f32_i32 v1, v7
v_mov_b32 v6, 0
s_mov_b32 s10, exec_lo
v_cmpx_gt_f32_dpp v1, v1 quad_perm:[2,3,0,1] row_mask:0xf bank_mask:0xf bound_ctrl:1 fi:1
v_mov_b32 v6, 1
s_mov_b32 exec_lo, s10
v_cmpx_gt_f32_dpp v1, -v1 quad_perm:[2,3,0,1] row_mask:0xf bank_mask:0xf bound_ctrl:1 fi:1
v_add_nc_u32 v6, 2, v6
s_mov_b32 exec_lo, s10
v_lshlrev_b32 v2, 2, v0
buffer_store_dword v6, v2, s[0:3], 0 offen
s_endpgm
5 changes: 3 additions & 2 deletions scripts/run_gpu_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1205,7 +1205,7 @@ def run_suite(a, work: str) -> int:
results.append((name,) + wavemask_check(vk_compute, spv, cs_env, w64_emulated()))
elif name in ("cs_smem_vcc_base", "cs_store", "cs_signed_zero_nan", "cs_smem_soffset_imm", "cs_w32_lane_wrap", "cs_movrelsd_2", "cs_w32_permute", "cs_w32_sincos", "cs_w32_buffer_sub16", "cs_w32_buffer_store_sub", "cs_w32_fcmpswap", "cs_w32_permlane_fi", "cs_exec_const", "cs_w32_mask_imm", "cs_w64_mask_imm", "cs_w32_lds_u8_d16", "cs_w32_lds_subdword", "cs_w32_lds_wide", "cs_w32_int_ext", "cs_w32_salu64", "cs_w32_misc_ext", "cs_w32_new_ops", "cs_wave64_ballot", "cs_wm_half_ops", "cs_wm_half_cmp", "cs_wm_bfm64", "cs_wm_scc_rfl", "cs_wqm_w64", "cs_wqm_w32", "cs_wqm_w64_half",
"cs_dpp", "cs_dpp_row", "cs_dpp_mask", "cs_dpp8", "cs_dpp_ops", "cs_dpp_bank", "cs_dpp_fi",
"cs_dpp_bound", "cs_dpp_cmp", "cs_dpp_w64",
"cs_dpp_bound", "cs_dpp_cmp", "cs_dpp_cmpx", "cs_dpp_w64",
"cs_w64_mask_detect",
"cs_w64x_readlane", "cs_w64x_writelane", "cs_w64x_readfirstlane", "cs_w64x_bpermute", "cs_w64x_permute",
"cs_w64x_branch", "cs_w64x_ballot", "cs_w64x_wg128_branches", "cs_w64x_lds_raw",
Expand Down Expand Up @@ -1274,6 +1274,7 @@ def run_suite(a, work: str) -> int:
"cs_dpp_bank": [0xFFFFFFFF, 0xFFFFFFFE, 0xFFFFFFFD, 0xFFFFFFFC, 7, 7, 7, 7],
"cs_dpp_fi": [1, 2, 3, 0x7777, 5, 6, 7, 0x7777],
"cs_dpp_cmp": [3, 2, 3, 2, 1, 0, 1, 0],
"cs_dpp_cmpx": [1, 1, 0, 0, 3, 3, 2, 2],
"cs_dpp_w64": [1, 0, 3, 2, 5, 4, 7, 6],
# SHADER-99: -0 and NaN survive (SignedZeroInfNanPreserve, cs_signed_zero_nan.asm); 0 in out[4..7]
# without it
Expand Down Expand Up @@ -1352,7 +1353,7 @@ def run_suite(a, work: str) -> int:
"cs_bpermute32", "cs_w32_partial_scmp", "cs_w32_partial_permute", "cs_w32_permlane_fi", "cs_w32_sincos", "cs_w32_buffer_sub16", "cs_w32_buffer_store_sub", "cs_w32_fcmpswap",
"cs_lds_b64_cmpst", "cs_lds_xchg64_ext", "cs_lds_atomics_ext", "cs_w32_wrxchg2_ext", "cs_w32_wrxchg2st64", "cs_exec_const", "cs_w32_mask_imm", "cs_mask_vgpr_exec",
"cs_dpp", "cs_dpp_row", "cs_dpp_mask", "cs_dpp8",
"cs_dpp_ops", "cs_dpp_bound", "cs_dpp_bank", "cs_dpp_fi", "cs_dpp_cmp", "cs_w32_andn2_exec",
"cs_dpp_ops", "cs_dpp_bound", "cs_dpp_bank", "cs_dpp_fi", "cs_dpp_cmp", "cs_dpp_cmpx", "cs_w32_andn2_exec",
"cs_w32_exec_computed") and not emulated and not partial
if partial:
cs_env = dict(os.environ, VKC_SUBGROUP_SIZE="32" if emulated else "64")
Expand Down
15 changes: 15 additions & 0 deletions tests/semantic/fixtures/disasm/cs_dpp_cmpx.s
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
; cs_dpp_cmpx test fixture generated by tests/semantic/regen_fixtures.py from runtime/test/shaders/cs_dpp_cmpx.asm
v_mbcnt_lo_u32_b32 v0, -1, 0
v_add_nc_u32 v7, -4, v0
v_cvt_f32_i32 v1, v7
v_mov_b32 v6, 0
s_mov_b32 s10, exec_lo
v_cmpx_gt_f32_dpp v1, v1 quad_perm:[2,3,0,1] row_mask:0xf bank_mask:0xf bound_ctrl:1 fi:1
v_mov_b32 v6, 1
s_mov_b32 exec_lo, s10
v_cmpx_gt_f32_dpp v1, -v1 quad_perm:[2,3,0,1] row_mask:0xf bank_mask:0xf bound_ctrl:1 fi:1
v_add_nc_u32 v6, 2, v6
s_mov_b32 exec_lo, s10
v_lshlrev_b32 v2, 2, v0
buffer_store_dword v6, v2, s[0:3], 0 offen
s_endpgm
152 changes: 120 additions & 32 deletions tests/semantic/test_dpp_compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
writes are translated: all rows and banks enabled and either `bound_ctrl:1` or DPP8. A form that leaves a lane
unwritten is refused, because what that lane's mask bit becomes is not measured.

`v_cmpx` in DPP form (SHADER-VOPCX-DPP) takes the same forms and writes EXEC instead of VCC. 78 pipeline-library
pixel shaders of 1.0.2.1 hold it, all as `v_cmpx_gt_f32_dpp vN, -vM quad_perm:[2,3,0,1] ... bound_ctrl:1 fi:1`.

The values come from running the translated module in tests/semantic/spirv_wave_interp.py.

Standard library only; no GPU, no LLVM, no SPIRV-Tools, no game files.
Expand Down Expand Up @@ -66,34 +69,40 @@ def compare_vs(op, form, exec_off=None):

def compare_reference(op, form, exec_off=None, wave=32):
"""The VCC bit per lane after compare_vs: an inactive lane's bit is 0, as for a plain compare."""
mods = form.split()
fi = any(m == "fi:1" for m in mods)
relation = COMPARES[op][1]
active = [lane != exec_off for lane in range(wave)]
out = []
for lane in range(wave):
loc, ok = lane & 15, True
if mods[0].startswith("dpp8:"):
src = (lane & ~7) | [int(x) for x in mods[0][6:-1].split(",")][lane & 7]
elif mods[0].startswith("quad_perm:"):
src = (lane & ~3) | [int(x) for x in mods[0][11:-1].split(",")][lane & 3]
else:
kind, _, n = mods[0].partition(":")
n = int(n or 0)
if kind == "row_shr":
ok, s = loc >= n, loc - n
elif kind == "row_shl":
ok, s = loc + n < 16, loc + n
elif kind == "row_ror":
s = (loc - n) & 15
else: # row_mirror
s = 15 - loc
src = (lane & ~15) | (s & 15)
valid = ok and (active[src] or fi)
out.append(int(active[lane] and relation(src if valid else 0, lane)))
src = source_lane(form, lane, active)
out.append(int(active[lane] and relation(src if src is not None else 0, lane)))
return out


def source_lane(form, lane, active):
"""The lane DPP `form` reads src0 from for `lane`, or None where src0 reads 0 (out of the row, or inactive
without fi:1)."""
mods = form.split()
fi = any(m == "fi:1" for m in mods)
loc, ok = lane & 15, True
if mods[0].startswith("dpp8:"):
src = (lane & ~7) | [int(x) for x in mods[0][6:-1].split(",")][lane & 7]
elif mods[0].startswith("quad_perm:"):
src = (lane & ~3) | [int(x) for x in mods[0][11:-1].split(",")][lane & 3]
else:
kind, _, n = mods[0].partition(":")
n = int(n or 0)
if kind == "row_shr":
ok, s = loc >= n, loc - n
elif kind == "row_shl":
ok, s = loc + n < 16, loc + n
elif kind == "row_ror":
s = (loc - n) & 15
else: # row_mirror
s = 15 - loc
src = (lane & ~15) | (s & 15)
return src if ok and (active[src] or fi) else None


def run(op, form, exec_off=None):
res = wi.run_wave(compare_vs(op, form, exec_off), wave=32,
builtins={"VertexIndex": lambda lane: lane, "InstanceIndex": lambda lane: 0})
Expand Down Expand Up @@ -124,30 +133,105 @@ def test_reference_by_hand(self):
def test_a_form_that_leaves_a_lane_unwritten_is_refused(self):
for form in UNWRITTEN_FORMS:
with self.subTest(form=form):
with self.assertRaisesRegex(Unsupported, "DPP compare with lanes that keep their mask bit"):
with self.assertRaisesRegex(Unsupported, "DPP compare with lanes DPP leaves unwritten"):
compare_vs("v_cmp_gt_f32_dpp", form)

def test_cmpx_is_refused(self):
lines = ["v_mbcnt_lo_u32_b32 v0, -1, 0",
"v_cmpx_gt_u32_dpp v0, v0 quad_perm:[1,0,3,2] row_mask:0xf bank_mask:0xf bound_ctrl:1",

# v_cmpx in DPP form (SHADER-VOPCX-DPP): the same lane selection, with the result written to EXEC. src0 is the first
# operand, since v_cmpx prints no destination. f32 compares read v1 = float(lane - 4), so a negated src1 changes the
# result; integer compares read v0 = lane.
CMPX = {
"v_cmpx_gt_f32_dpp": ("v1", lambda a, b: a > b),
"v_cmpx_lt_u32_dpp": ("v0", lambda a, b: a < b),
"v_cmpx_eq_u32_dpp": ("v0", lambda a, b: a == b),
}
# The form all 113 DPP v_cmpx of the 78 refused pipeline-library pixel shaders of 1.0.2.1 use, with src1 negated.
GAME_FORM = "quad_perm:[2,3,0,1] row_mask:0xf bank_mask:0xf bound_ctrl:1 fi:1"


def cmpx_vs(op, form, exec_off=None, neg=False):
"""A vertex shader: EXEC = `op`(DPP(src), [-]src) over the lanes on (all but `exec_off`); param0.x exports 1
where the new EXEC keeps the lane and 0 where it drops it."""
src = CMPX[op][0]
lines = ["v_mbcnt_lo_u32_b32 v0, -1, 0", "v_add_nc_u32_e32 v7, -4, v0", "v_cvt_f32_i32_e32 v1, v7",
"v_mov_b32 v4, 1", "v_mov_b32 v6, 0", "s_mov_b32 s10, exec_lo"]
if exec_off is not None:
lines.append(f"v_cmpx_ne_u32_e32 {exec_off}, v0")
lines += [f"{op} {src}, {'-' if neg else ''}{src} {form}", "v_mov_b32 v6, v4", "s_mov_b32 exec_lo, s10",
"v_mov_b32 v5, 0", "exp pos0 v5, v5, v5, v5 done", "exp param0 v6, v5, v5, v5", "s_endpgm"]
return support.translate_lines("vs_dpp_cmpx", lines)


def cmpx_reference(op, form, exec_off=None, neg=False, wave=32):
"""The EXEC bit per lane after the v_cmpx of cmpx_vs: 0 for a lane that was off, as for a plain v_cmpx."""
src, relation = CMPX[op]
value = (lambda lane: float(lane - 4)) if src == "v1" else (lambda lane: lane)
active = [lane != exec_off for lane in range(wave)]
out = []
for lane in range(wave):
s = source_lane(form, lane, active)
a = value(s) if s is not None else 0
b = -value(lane) if neg else value(lane)
out.append(int(active[lane] and relation(a, b)))
return out


def run_cmpx(op, form, exec_off=None, neg=False):
res = wi.run_wave(cmpx_vs(op, form, exec_off, neg), wave=32,
builtins={"VertexIndex": lambda lane: lane, "InstanceIndex": lambda lane: 0})
return [o["%out_param0"][0] for o in res["outputs"]]


class DppCompareExec(unittest.TestCase):
def test_values(self):
for op in CMPX:
for form in WRITTEN_FORMS + [GAME_FORM]:
for exec_off in (None, 5, 16):
with self.subTest(op=op, form=form, exec_off=exec_off):
self.assertEqual(run_cmpx(op, form, exec_off), cmpx_reference(op, form, exec_off))

def test_game_form_with_negated_src1(self):
for exec_off in (None, 1, 6):
with self.subTest(exec_off=exec_off):
want = cmpx_reference("v_cmpx_gt_f32_dpp", GAME_FORM, exec_off, neg=True)
self.assertEqual(run_cmpx("v_cmpx_gt_f32_dpp", GAME_FORM, exec_off, neg=True), want)
self.assertNotEqual(want, cmpx_reference("v_cmpx_gt_f32_dpp", GAME_FORM, exec_off))

def test_reference_by_hand(self):
# quad_perm:[2,3,0,1] swaps the halves of each quad, and lanes 0-7 hold -4..3: lane 0 compares lane 2's -2
# with its own -4, so -2 > -4 keeps it and, src1 negated, -2 > 4 drops it.
self.assertEqual(cmpx_reference("v_cmpx_gt_f32_dpp", GAME_FORM)[:8], [1, 1, 0, 0, 1, 1, 0, 0])
self.assertEqual(cmpx_reference("v_cmpx_gt_f32_dpp", GAME_FORM, neg=True)[:8], [0, 0, 0, 0, 1, 1, 1, 1])
# A lane that was off stays off, whatever its compare gives.
self.assertEqual(cmpx_reference("v_cmpx_gt_f32_dpp", GAME_FORM, exec_off=5)[:8], [1, 1, 0, 0, 1, 0, 0, 0])

def test_a_form_that_leaves_a_lane_unwritten_is_refused(self):
for form in UNWRITTEN_FORMS:
with self.subTest(form=form):
with self.assertRaisesRegex(Unsupported, "DPP compare with lanes DPP leaves unwritten"):
cmpx_vs("v_cmpx_gt_f32_dpp", form)

def test_a_destination_operand_is_refused(self):
# v_cmpx prints no destination: a line with one is not a form the disassembler writes.
lines = ["v_mbcnt_lo_u32_b32 v0, -1, 0", f"v_cmpx_gt_u32_dpp vcc_lo, v0, v0 {WRITTEN_FORMS[0]}",
"v_mov_b32 v5, 0", "exp pos0 v5, v5, v5, v5 done", "s_endpgm"]
with self.assertRaises(Unsupported):
support.translate_lines("vs_dpp_cmpx", lines)
with self.assertRaisesRegex(Unsupported, "DPP compare operands"):
support.translate_lines("vs_dpp_cmpx_dst", lines)


def vopc(opcode, src0, vsrc1):
return 0x3E << 25 | opcode << 17 | vsrc1 << 9 | src0


def dpp16_word(src0_reg, ctrl, bound=0, fi=0, bank_mask=0xF, row_mask=0xF):
return row_mask << 28 | bank_mask << 24 | bound << 19 | fi << 18 | ctrl << 8 | src0_reg
def dpp16_word(src0_reg, ctrl, bound=0, fi=0, bank_mask=0xF, row_mask=0xF, src1_neg=0):
return row_mask << 28 | bank_mask << 24 | src1_neg << 22 | bound << 19 | fi << 18 | ctrl << 8 | src0_reg


def dpp8_word(src0_reg, lanes):
return sum(lane << (8 + 3 * i) for i, lane in enumerate(lanes)) | src0_reg


GT_F32, LT_U32 = 0x04, 0xC1 # VOPC opcodes (tools/rdna2_tables.py)
GT_F32, LT_U32, CMPX_GT_F32 = 0x04, 0xC1, 0x14 # VOPC opcodes (tools/rdna2_tables.py)
S_ENDPGM = 0xBF810000
# (first word, second word, the line both printers give)
PAIRS = [
Expand All @@ -161,6 +245,9 @@ def dpp8_word(src0_reg, lanes):
"v_cmp_gt_f32_dpp vcc_lo, v20, v20 dpp8:[4,5,6,7,0,1,2,3]"),
(vopc(GT_F32, 234, 6), dpp8_word(5, [7, 6, 5, 4, 3, 2, 1, 0]),
"v_cmp_gt_f32_dpp vcc_lo, v5, v6 dpp8:[7,6,5,4,3,2,1,0] fi:1"),
# The game's v_cmpx form: no destination, src1 negated (bytes fa 02 28 7c 01 4e 4c ff).
(vopc(CMPX_GT_F32, 250, 1), dpp16_word(1, 0x4E, bound=1, fi=1, src1_neg=1),
"v_cmpx_gt_f32_dpp v1, -v1 quad_perm:[2,3,0,1] row_mask:0xf bank_mask:0xf bound_ctrl:1 fi:1"),
]


Expand All @@ -175,6 +262,7 @@ def test_opcodes_are_the_tables(self):
import rdna2_decode
self.assertEqual(rdna2_decode.T.VOPC[GT_F32][0], "v_cmp_gt_f32")
self.assertEqual(rdna2_decode.T.VOPC[LT_U32][0], "v_cmp_lt_u32")
self.assertEqual(rdna2_decode.T.VOPC[CMPX_GT_F32][0], "v_cmpx_gt_f32")

def test_python_decoder(self):
import rdna2_decode
Expand All @@ -186,8 +274,8 @@ def test_python_decoder(self):
self.assertEqual((lines, bad), ([want, "s_endpgm"], 0))

def test_a_decoded_line_translates(self):
# What the disassembler prints is what the translator takes: the two forms it accepts, from PAIRS.
for _, _, line in (PAIRS[0], PAIRS[3]):
# What the disassembler prints is what the translator takes: the forms it accepts, from PAIRS.
for _, _, line in (PAIRS[0], PAIRS[3], PAIRS[5]):
with self.subTest(line=line):
lines = ["v_mbcnt_lo_u32_b32 v0, -1, 0", line, "v_mov_b32 v5, 0", "exp pos0 v5, v5, v5, v5 done",
"s_endpgm"]
Expand Down
10 changes: 10 additions & 0 deletions tests/semantic/test_library_compute_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,16 @@ def test_vopc_dpp_encoded_fields_and_recovery(self):
self.assertEqual((recovered["pc"], recovered["enc"]), (0, blob.hex()))
self.assertFalse(rdna2_decode.decode_bytes(blob[:4])["insns"])

def test_vopcx_dpp_recovery(self):
# SHADER-VOPCX-DPP: the same pass recovers v_cmpx in DPP form (opcode 0x14, v_cmpx_gt_f32), which prints no
# destination: the game's form, quad_perm:[2,3,0,1] bound_ctrl:1 fi:1 with src1 negated (fa 02 28 7c 01 4e 4c ff).
blob = bytes.fromhex("fa02287c014e4cff")
row, = rdna2_decode.decode_bytes(blob, wave32=True)["insns"]
self.assertEqual((row["op"], len(row["args"]), row["args"][0]["r"]), ("v_cmpx_gt_f32_dpp", 2, 1))
junk = {"pc": 4, "enc": blob[4:].hex(), "op": "s_nop", "args": [{"k": "imm", "v": 0}], "mods": []}
recovered, = rdna2spirv.restore_vcc_tuples([junk], blob, 0, len(blob), wave32=True)
self.assertEqual((recovered["pc"], recovered["enc"], recovered["op"]), (0, blob.hex(), "v_cmpx_gt_f32_dpp"))

def test_vopc_dpp_reads_the_selected_lane(self):
spv, _ = translate_fspx(fixture("vopc_dpp_compare")[:-1], wave32=False)
memory = {}
Expand Down
20 changes: 20 additions & 0 deletions tests/semantic/test_wave64_halves.py
Original file line number Diff line number Diff line change
Expand Up @@ -1348,5 +1348,25 @@ def test_ps_w64_fixtures(self):
self.assertEqual(slots64, slots32)


class VcmpxDppExec(unittest.TestCase):
"""SHADER-VOPCX-DPP review: a v_cmpx in DPP form writes EXEC like any v_cmpx, and the cross-lane branch of the
analysis must not drop that write. The repro from the review: after the compare, v5 = s4 is not one value in every
lane, so v_readlane_b32 of it is not a uniform read."""

BODY = ["v_mov_b32_e32 v5, 0", "s_mov_b64 s[10:11], exec", None, "v_mov_b32_e32 v5, s4", "s_mov_b64 exec, s[10:11]",
"v_readlane_b32 s5, v5, 0", "v_mov_b32_e32 v6, s5"]

def meta(self, compare):
body = [compare if line is None else line for line in self.BODY]
return meta_of("ps_vcmpx_dpp_exec", ps(body))[0]

def test_dpp_form_is_classified_as_the_e32_form(self):
e32 = self.meta("v_cmpx_gt_f32_e32 v1, v2")
dpp = self.meta("v_cmpx_gt_f32_dpp v1, -v1 quad_perm:[2,3,0,1] row_mask:0xf bank_mask:0xf bound_ctrl:1 fi:1")
self.assertEqual(e32, ("C", ["cross-lane"], []))
self.assertEqual(dpp, e32)
self.assertNotIn("readlane-uniform", dpp[2])


if __name__ == "__main__":
unittest.main()
Loading
Loading