From 0cf4e8a9e97fc9f880c6c7ccb3cef5f9b3e39d39 Mon Sep 17 00:00:00 2001 From: elforeign <324243036+elforeign@users.noreply.github.com> Date: Tue, 24 Nov 2026 08:58:43 -0600 Subject: [PATCH] docs: status rows for the sixteen SOPK forms (#215) Signed-off-by: elforeign <324243036+elforeign@users.noreply.github.com> --- docs/assets/xenora-progress.svg | 8 +- docs/shaders/instruction-coverage.md | 16 +++ docs/shaders/semantic-coverage.md | 4 +- docs/status.toml | 192 +++++++++++++++++++++++++++ 4 files changed, 214 insertions(+), 6 deletions(-) diff --git a/docs/assets/xenora-progress.svg b/docs/assets/xenora-progress.svg index 7e30221..098ec9e 100644 --- a/docs/assets/xenora-progress.svg +++ b/docs/assets/xenora-progress.svg @@ -1,17 +1,17 @@ Xenora · recorded progress -Decoded gfx1030 forms: 104 of 104. Accepted Metal forms · Apple M5: 18 of 104. Accepted guest milestones · X1–X4: 4 of 4 +Decoded gfx1030 forms: 120 of 120. Accepted Metal forms · Apple M5: 18 of 120. Accepted guest milestones · X1–X4: 4 of 4 RECORDED FIXTURE PROGRESS Decoded gfx1030 forms -104 / 104 +120 / 120 Accepted Metal forms · Apple M5 -18 / 104 +18 / 120 - + Accepted guest milestones · X1–X4 4 / 4 diff --git a/docs/shaders/instruction-coverage.md b/docs/shaders/instruction-coverage.md index d3f72f4..75733c3 100644 --- a/docs/shaders/instruction-coverage.md +++ b/docs/shaders/instruction-coverage.md @@ -33,6 +33,22 @@ The wider LLVM operand matrix exercises decoding only. ABI means application bin | `s_sext_i32_i16` | SOP1, normal SGPR destination; normal SGPR, inline integer or literal source; D = S0[15:0] sign-extended; SCC unchanged | `BE921AFF 00018000` | yes | yes | three-way passed | resolved scalar state and SCC | implemented | local known-answer test passed | local Apple M5 readback passed; acceptance pending | | `s_abs_i32` | SOP1, normal SGPR destination; normal SGPR, inline integer or literal source; D = \|S0\| (0x80000000 stays); SCC = D != 0 | `BE933412` | yes | yes | three-way passed | resolved scalar state and SCC | implemented | local known-answer test passed | local Apple M5 readback passed; acceptance pending | | `s_cmp_eq_u32` | Normal SGPR or integer operands, with at most one source selecting a literal | `BF068708` | yes | yes | three-way passed | resolved SCC | implemented | fixture verified | fixture verified | +| `s_movk_i32` | SOPK, normal SGPR destination s8-s105 (s0-s7 hold resource descriptors and are never written); D = sext(SIMM16); SCC unchanged | `B0088000` | yes | yes | three-way passed | resolved scalar state | implemented | local known-answer test passed | local Apple M5 readback passed; acceptance pending | +| `s_cmovk_i32` | SOPK, normal SGPR destination s8-s105 (s0-s7 hold resource descriptors and are never written); if SCC then D = sext(SIMM16), SCC known during translation; SCC unchanged | `B1088000` | yes | yes | three-way passed | resolved scalar state | implemented | local known-answer test passed | local Apple M5 readback passed; acceptance pending | +| `s_cmpk_eq_i32` | SOPK; initialized normal SGPR s0-s105; SCC = S == sext(SIMM16) (signed) | `B1888000` | yes | yes | three-way passed | resolved SCC | implemented | local known-answer test passed | local Apple M5 readback passed; acceptance pending | +| `s_cmpk_lg_i32` | SOPK; initialized normal SGPR s0-s105; SCC = S != sext(SIMM16) (signed) | `B2088000` | yes | yes | three-way passed | resolved SCC | implemented | local known-answer test passed | local Apple M5 readback passed; acceptance pending | +| `s_cmpk_gt_i32` | SOPK; initialized normal SGPR s0-s105; SCC = S > sext(SIMM16) (signed) | `B2888000` | yes | yes | three-way passed | resolved SCC | implemented | local known-answer test passed | local Apple M5 readback passed; acceptance pending | +| `s_cmpk_ge_i32` | SOPK; initialized normal SGPR s0-s105; SCC = S >= sext(SIMM16) (signed) | `B3088000` | yes | yes | three-way passed | resolved SCC | implemented | local known-answer test passed | local Apple M5 readback passed; acceptance pending | +| `s_cmpk_lt_i32` | SOPK; initialized normal SGPR s0-s105; SCC = S < sext(SIMM16) (signed) | `B3888000` | yes | yes | three-way passed | resolved SCC | implemented | local known-answer test passed | local Apple M5 readback passed; acceptance pending | +| `s_cmpk_le_i32` | SOPK; initialized normal SGPR s0-s105; SCC = S <= sext(SIMM16) (signed) | `B4088000` | yes | yes | three-way passed | resolved SCC | implemented | local known-answer test passed | local Apple M5 readback passed; acceptance pending | +| `s_cmpk_eq_u32` | SOPK; initialized normal SGPR s0-s105; SCC = S == zext(SIMM16) (unsigned) | `B4888000` | yes | yes | three-way passed | resolved SCC | implemented | local known-answer test passed | local Apple M5 readback passed; acceptance pending | +| `s_cmpk_lg_u32` | SOPK; initialized normal SGPR s0-s105; SCC = S != zext(SIMM16) (unsigned) | `B5088000` | yes | yes | three-way passed | resolved SCC | implemented | local known-answer test passed | local Apple M5 readback passed; acceptance pending | +| `s_cmpk_gt_u32` | SOPK; initialized normal SGPR s0-s105; SCC = S > zext(SIMM16) (unsigned) | `B5888000` | yes | yes | three-way passed | resolved SCC | implemented | local known-answer test passed | local Apple M5 readback passed; acceptance pending | +| `s_cmpk_ge_u32` | SOPK; initialized normal SGPR s0-s105; SCC = S >= zext(SIMM16) (unsigned) | `B6088000` | yes | yes | three-way passed | resolved SCC | implemented | local known-answer test passed | local Apple M5 readback passed; acceptance pending | +| `s_cmpk_lt_u32` | SOPK; initialized normal SGPR s0-s105; SCC = S < zext(SIMM16) (unsigned) | `B6888000` | yes | yes | three-way passed | resolved SCC | implemented | local known-answer test passed | local Apple M5 readback passed; acceptance pending | +| `s_cmpk_le_u32` | SOPK; initialized normal SGPR s0-s105; SCC = S <= zext(SIMM16) (unsigned) | `B7088000` | yes | yes | three-way passed | resolved SCC | implemented | local known-answer test passed | local Apple M5 readback passed; acceptance pending | +| `s_addk_i32` | SOPK, normal SGPR destination s8-s105 (s0-s7 hold resource descriptors and are never written), initialized; D = D + sext(SIMM16); SCC = signed overflow | `B7888000` | yes | yes | three-way passed | resolved scalar state and SCC | implemented | local known-answer test passed | local Apple M5 readback passed; acceptance pending | +| `s_mulk_i32` | SOPK, normal SGPR destination s8-s105 (s0-s7 hold resource descriptors and are never written), initialized; D = low 32 bits of D * sext(SIMM16); SCC unchanged | `B8088000` | yes | yes | three-way passed | resolved scalar state | implemented | local known-answer test passed | local Apple M5 readback passed; acceptance pending | | `s_cmp_eq_i32` | SOPC; normal SGPR, inline integer or literal sources with at most one literal; SCC = S0 == S1 (signed) | `BF00C108` | yes | yes | three-way passed | resolved SCC | implemented | local known-answer test passed | local Apple M5 readback passed; acceptance pending | | `s_cmp_lg_i32` | SOPC; normal SGPR, inline integer or literal sources with at most one literal; SCC = S0 != S1 (signed) | `BF010908` | yes | yes | three-way passed | resolved SCC | implemented | local known-answer test passed | local Apple M5 readback passed; acceptance pending | | `s_cmp_gt_i32` | SOPC; normal SGPR, inline integer or literal sources with at most one literal; SCC = S0 > S1 (signed) | `BF020908` | yes | yes | three-way passed | resolved SCC | implemented | local known-answer test passed | local Apple M5 readback passed; acceptance pending | diff --git a/docs/shaders/semantic-coverage.md b/docs/shaders/semantic-coverage.md index 1422326..ae178d5 100644 --- a/docs/shaders/semantic-coverage.md +++ b/docs/shaders/semantic-coverage.md @@ -27,7 +27,7 @@ acceptance remain outside the verified count. All results concern synthetic fixt | SOP1 | 65 | 12 | 11 | 12 | 12 | 12 | 1 | 1 | 11 | | SOP2 | 51 | 33 | 33 | 33 | 33 | 33 | 0 | 0 | 12 | | SOPC | 18 | 12 | 12 | 12 | 12 | 12 | 1 | 1 | 7 | -| SOPK | 27 | 1 | 16 | 17 | 1 | 1 | 1 | 1 | 5 | +| SOPK | 27 | 17 | 16 | 17 | 17 | 17 | 1 | 1 | 5 | | SOPP | 36 | 6 | 0 | 6 | 6 | 6 | 4 | 4 | 0 | | VINTRP | 3 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | | VOP1 | 81 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | @@ -36,7 +36,7 @@ acceptance remain outside the verified count. All results concern synthetic fixt | VOP3P | 29 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | VOP3SDST | 10 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | | VOPC | 190 | 16 | 16 | 16 | 16 | 16 | 0 | 0 | 7 | -| **Total** | 1465 | 104 | 107 | 124 | 104 | 104 | 18 | 18 | 65 | +| **Total** | 1465 | 120 | 107 | 124 | 120 | 120 | 18 | 18 | 65 | ## Unsupported operand variants diff --git a/docs/status.toml b/docs/status.toml index 01fb189..5f92851 100644 --- a/docs/status.toml +++ b/docs/status.toml @@ -279,6 +279,198 @@ recognized = true decoded = true llvm = "three-way passed" +[[instruction]] +form = "s_movk_i32" +encoding = "SOPK, normal SGPR destination s8-s105 (s0-s7 hold resource descriptors and are never written); D = sext(SIMM16); SCC unchanged" +representation = "`B0088000`" +lowering = "resolved scalar state" +reference = "implemented" +cpu = "local known-answer test passed" +gpu = "local Apple M5 readback passed; acceptance pending" +recognized = true +decoded = true +llvm = "three-way passed" + +[[instruction]] +form = "s_cmovk_i32" +encoding = "SOPK, normal SGPR destination s8-s105 (s0-s7 hold resource descriptors and are never written); if SCC then D = sext(SIMM16), SCC known during translation; SCC unchanged" +representation = "`B1088000`" +lowering = "resolved scalar state" +reference = "implemented" +cpu = "local known-answer test passed" +gpu = "local Apple M5 readback passed; acceptance pending" +recognized = true +decoded = true +llvm = "three-way passed" + +[[instruction]] +form = "s_cmpk_eq_i32" +encoding = "SOPK; initialized normal SGPR s0-s105; SCC = S == sext(SIMM16) (signed)" +representation = "`B1888000`" +lowering = "resolved SCC" +reference = "implemented" +cpu = "local known-answer test passed" +gpu = "local Apple M5 readback passed; acceptance pending" +recognized = true +decoded = true +llvm = "three-way passed" + +[[instruction]] +form = "s_cmpk_lg_i32" +encoding = "SOPK; initialized normal SGPR s0-s105; SCC = S != sext(SIMM16) (signed)" +representation = "`B2088000`" +lowering = "resolved SCC" +reference = "implemented" +cpu = "local known-answer test passed" +gpu = "local Apple M5 readback passed; acceptance pending" +recognized = true +decoded = true +llvm = "three-way passed" + +[[instruction]] +form = "s_cmpk_gt_i32" +encoding = "SOPK; initialized normal SGPR s0-s105; SCC = S > sext(SIMM16) (signed)" +representation = "`B2888000`" +lowering = "resolved SCC" +reference = "implemented" +cpu = "local known-answer test passed" +gpu = "local Apple M5 readback passed; acceptance pending" +recognized = true +decoded = true +llvm = "three-way passed" + +[[instruction]] +form = "s_cmpk_ge_i32" +encoding = "SOPK; initialized normal SGPR s0-s105; SCC = S >= sext(SIMM16) (signed)" +representation = "`B3088000`" +lowering = "resolved SCC" +reference = "implemented" +cpu = "local known-answer test passed" +gpu = "local Apple M5 readback passed; acceptance pending" +recognized = true +decoded = true +llvm = "three-way passed" + +[[instruction]] +form = "s_cmpk_lt_i32" +encoding = "SOPK; initialized normal SGPR s0-s105; SCC = S < sext(SIMM16) (signed)" +representation = "`B3888000`" +lowering = "resolved SCC" +reference = "implemented" +cpu = "local known-answer test passed" +gpu = "local Apple M5 readback passed; acceptance pending" +recognized = true +decoded = true +llvm = "three-way passed" + +[[instruction]] +form = "s_cmpk_le_i32" +encoding = "SOPK; initialized normal SGPR s0-s105; SCC = S <= sext(SIMM16) (signed)" +representation = "`B4088000`" +lowering = "resolved SCC" +reference = "implemented" +cpu = "local known-answer test passed" +gpu = "local Apple M5 readback passed; acceptance pending" +recognized = true +decoded = true +llvm = "three-way passed" + +[[instruction]] +form = "s_cmpk_eq_u32" +encoding = "SOPK; initialized normal SGPR s0-s105; SCC = S == zext(SIMM16) (unsigned)" +representation = "`B4888000`" +lowering = "resolved SCC" +reference = "implemented" +cpu = "local known-answer test passed" +gpu = "local Apple M5 readback passed; acceptance pending" +recognized = true +decoded = true +llvm = "three-way passed" + +[[instruction]] +form = "s_cmpk_lg_u32" +encoding = "SOPK; initialized normal SGPR s0-s105; SCC = S != zext(SIMM16) (unsigned)" +representation = "`B5088000`" +lowering = "resolved SCC" +reference = "implemented" +cpu = "local known-answer test passed" +gpu = "local Apple M5 readback passed; acceptance pending" +recognized = true +decoded = true +llvm = "three-way passed" + +[[instruction]] +form = "s_cmpk_gt_u32" +encoding = "SOPK; initialized normal SGPR s0-s105; SCC = S > zext(SIMM16) (unsigned)" +representation = "`B5888000`" +lowering = "resolved SCC" +reference = "implemented" +cpu = "local known-answer test passed" +gpu = "local Apple M5 readback passed; acceptance pending" +recognized = true +decoded = true +llvm = "three-way passed" + +[[instruction]] +form = "s_cmpk_ge_u32" +encoding = "SOPK; initialized normal SGPR s0-s105; SCC = S >= zext(SIMM16) (unsigned)" +representation = "`B6088000`" +lowering = "resolved SCC" +reference = "implemented" +cpu = "local known-answer test passed" +gpu = "local Apple M5 readback passed; acceptance pending" +recognized = true +decoded = true +llvm = "three-way passed" + +[[instruction]] +form = "s_cmpk_lt_u32" +encoding = "SOPK; initialized normal SGPR s0-s105; SCC = S < zext(SIMM16) (unsigned)" +representation = "`B6888000`" +lowering = "resolved SCC" +reference = "implemented" +cpu = "local known-answer test passed" +gpu = "local Apple M5 readback passed; acceptance pending" +recognized = true +decoded = true +llvm = "three-way passed" + +[[instruction]] +form = "s_cmpk_le_u32" +encoding = "SOPK; initialized normal SGPR s0-s105; SCC = S <= zext(SIMM16) (unsigned)" +representation = "`B7088000`" +lowering = "resolved SCC" +reference = "implemented" +cpu = "local known-answer test passed" +gpu = "local Apple M5 readback passed; acceptance pending" +recognized = true +decoded = true +llvm = "three-way passed" + +[[instruction]] +form = "s_addk_i32" +encoding = "SOPK, normal SGPR destination s8-s105 (s0-s7 hold resource descriptors and are never written), initialized; D = D + sext(SIMM16); SCC = signed overflow" +representation = "`B7888000`" +lowering = "resolved scalar state and SCC" +reference = "implemented" +cpu = "local known-answer test passed" +gpu = "local Apple M5 readback passed; acceptance pending" +recognized = true +decoded = true +llvm = "three-way passed" + +[[instruction]] +form = "s_mulk_i32" +encoding = "SOPK, normal SGPR destination s8-s105 (s0-s7 hold resource descriptors and are never written), initialized; D = low 32 bits of D * sext(SIMM16); SCC unchanged" +representation = "`B8088000`" +lowering = "resolved scalar state" +reference = "implemented" +cpu = "local known-answer test passed" +gpu = "local Apple M5 readback passed; acceptance pending" +recognized = true +decoded = true +llvm = "three-way passed" + [[instruction]] form = "s_cmp_eq_i32" encoding = "SOPC; normal SGPR, inline integer or literal sources with at most one literal; SCC = S0 == S1 (signed)"