diff options
| author | imShangLi <imShangLi@users.noreply.github.com> | 2026-12-02 17:31:52 +0800 |
|---|---|---|
| committer | imShangLi <imShangLi@users.noreply.github.com> | 2026-12-02 17:31:52 +0800 |
| commit | 5199e946b180af2543871ea2b2672ae7a8b1c1ff (patch) | |
| tree | f07430e372a2e8cd88e978214a8d70bae1295b83 /runtime/src/thread_stacks.cpp | |
| parent | 0ed295c761b50187ac8a0128e05d56da65a0031f (diff) | |
translator: the review's findings on the refusal of an unreadable listing
- The modifier is read in one place for the translation (`modifier_bits`) and in one place for the two
analyses that only look at it (`_modifier_bits`, which answers conservatively), so the doc row's claim
is true: fourteen places read it with `int()` before.
- The doc row named `op_sel_bits` (the function is `modifier_bits`), said that every unreadable operand
ended the translation with a `KeyError` (only an address or a data register did; a source and a
destination were already refused, with a different message) and left the `ValueError` of an
instruction with too few operands out.
- The sweep of the test replaced a part of the instruction text split on commas, which can be a bit of
a modifier (`op_sel:[0,1,0]`) rather than an operand. The operands are now the ones the parser sees
(`shader_ir.MODWORDS` + `shader_ir.split_args`) and the first of them is replaced where it stands.
Diffstat (limited to 'runtime/src/thread_stacks.cpp')
0 files changed, 0 insertions, 0 deletions