match(pf_fat): PFFAT_GetSectorSpecified #658

Merged
coah80 merged 1 commits from match/pf_fat-GetSectorSpecified into main 2026-10-01 23:45:26 +00:00
coah80 commented 2026-10-01 23:42:40 +00:00 (Migrated from github.com)

Summary

  • Match PFFAT_GetSectorSpecified by rewriting the error cleanup as switch (error) so MWCC emits the target beq / b / li r3,0 epilogue (instead of a collapsed bne / li).

Progress

funcs code bytes
before 30/35 9900 / 12572
after 31/35 9968 / 12572

DOL sha1: 26116613f624061ba99c8d1a299aaa6efa85670d (unchanged)

Test plan

  • ninja build/43U/src/libs/RVL_SDK/src/fa/pf_fat.o
  • odiff: PFFAT_GetSectorSpecified exact
  • ninja build/43U/main.dol + sha1 check
## Summary - Match `PFFAT_GetSectorSpecified` by rewriting the error cleanup as `switch (error)` so MWCC emits the target `beq` / `b` / `li r3,0` epilogue (instead of a collapsed `bne` / `li`). ## Progress | | funcs | code bytes | |---|---:|---:| | before | 30/35 | 9900 / 12572 | | after | **31/35** | **9968** / 12572 | **DOL sha1:** `26116613f624061ba99c8d1a299aaa6efa85670d` (unchanged) ## Test plan - [x] `ninja build/43U/src/libs/RVL_SDK/src/fa/pf_fat.o` - [x] odiff: `PFFAT_GetSectorSpecified` exact - [x] `ninja build/43U/main.dol` + sha1 check
coah80 commented 2026-10-01 23:45:23 +00:00 (Migrated from github.com)

Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.

Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.
Sign in to join this conversation.