Skip to content
Closed
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
1 change: 1 addition & 0 deletions tests/semantic/fixtures/buffer_format_unreadable.asm
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
; s[4:7] is the tested V#. The harness gives s[0:3] a separate output range.
; s[4:7] is the tested V#: its FORMAT picks the decode at run time. s[0:3] is a raw V# over a separate output range.
v_cmpx_eq_u32_e32 0, v0
buffer_load_format_xyzw v[4:7], off, s[4:7], 0
s_waitcnt vmcnt(0)
Expand Down
5 changes: 4 additions & 1 deletion tests/semantic/test_buffer_oob_dst_sel.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,10 @@ def test_invalid_format_with_nonempty_range_skips_backing_load(self):
with self.subTest(code=code):
pcs = [0, 0, 16, OUT_V, BASE, 0, 16, word3(code, DST_X_0_1_1)] + [0] * 24
mem, _ = self._run_cs(lines, push_constants=pcs)
self.assertEqual(bool(mem.reads), code == 20)
if code == 20:
self.assertIn(BASE, mem.reads)
else:
self.assertEqual(mem.reads, [])
self.assertEqual([dict.get(mem, i, 0) for i in (0, 4, 8, 12)],
[0x3F000000 if code == 20 else 0, 0, 1, 1])

Expand Down
Loading