From 9fc773ef4dc8edd6e65988368cadf6ed3f3931a2 Mon Sep 17 00:00:00 2001 From: coah <100182500+coah80@users.noreply.github.com> Date: Mon, 5 Oct 2026 09:30:29 +0000 Subject: [PATCH] decomp(TMC_JPEG): match four RGB565 converters with per-pixel locals (rx13 astra max) (worker 4aa915db) --- .../src/texturecvtr/Texture_MCUtoRGB565.c | 292 ++++++------- tools/decomp-assist/rx13.attempts.md | 389 ++++++++++++++++++ 2 files changed, 539 insertions(+), 142 deletions(-) create mode 100644 tools/decomp-assist/rx13.attempts.md diff --git a/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565.c b/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565.c index 2dfc10ae..a01a1c61 100644 --- a/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565.c +++ b/libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565.c @@ -260,15 +260,38 @@ static void TMCJPEGDEC_converterYUV411toRGB565(TMCCJPEGDecWork* work, s32 x, s32 } static void TMCJPEGDEC_converterYUV411toRGB565edge(TMCCJPEGDecWork* work, s32 x, s32 y) { + s32 lumaSkip; + s32 chromaSkip; + u16* output; + s32 tileRow; + s32 columnInTile; + u8* texture; + u8* luminance; + u8* cb; + u8* cr; s32 column; - u8* luminance = work->convBuf + 4; - s8* cb = (s8*)&work->convBuf[260]; - s8* cr = (s8*)&work->convBuf[324]; - TMCCJPEGDecState* state = work->pState; - u32 tileWidth = state->convWidth >> 2; - u8* texture = state->pTexBuffer; - s32 width; + s32 xEnd; + s32 yEnd; + u32 tileWidth; + s32 redOffset; + s32 greenOffset; + s32 blueOffset; + s32 red; + s32 green; + s32 blue; s32 height; + s32 width; + TMCCJPEGDecState* state; + s32 cbValue; + s8 crValue; + s32 value; + + luminance = work->convBuf + 4; + cb = &work->convBuf[260]; + cr = &work->convBuf[324]; + state = work->pState; + tileWidth = state->convWidth >> 2; + texture = state->pTexBuffer; if (state->dataSizeX == (u32)x) { width = state->stepXExt; } else { @@ -279,71 +302,67 @@ static void TMCJPEGDEC_converterYUV411toRGB565edge(TMCCJPEGDecWork* work, s32 x, } else { height = 8 / state->scaleFactor; } - { - s32 xEnd = x + width; - s32 yEnd = y + height; - s32 lumaSkip = 32 - width; - s32 chromaSkip = lumaSkip >> 2; - s32 redOffset; - s32 blueOffset; - s32 greenOffset; - ASSERTLINE((x & 3) == 0, __LINE__); - for (; y < yEnd; y++) { - s32 tileRow = (y >> 2) * tileWidth; - u16* output = (u16*)(texture + ((y & 3) << 3)); - for (column = x; column < xEnd; column += 1) { - if ((column & 3) == 0) { - s32 cbValue = *cb++; - s32 crValue = *cr++; - redOffset = (crValue * 359) >> 8; - greenOffset = -(cbValue * 88 + crValue * 183) >> 8; - blueOffset = (cbValue * 454) >> 8; - } - { - s32 value = *luminance++; - s32 green = value + greenOffset; - s32 red = value + redOffset; - s32 blue = value + blueOffset; - if ((blue | red | green) >> 8) { - blue = blue > 255 ? 255 : blue < 0 ? 0 : blue; - green = green > 255 ? 255 : green < 0 ? 0 : green; - red = red > 255 ? 255 : red < 0 ? 0 : red; - } - output[(column & 3) + ((((column) >> 2) + tileRow) << 4)] = - ((blue & 0xF8) >> 3) + ((red & 0xF8) << 8) + ((green & 0xFC) << 3); - } + xEnd = x + width; + yEnd = y + height; + lumaSkip = 32 - width; + chromaSkip = lumaSkip >> 2; + ASSERTLINE((x & 3) == 0, __LINE__); + for (; y < yEnd; y++) { + output = (u16*)(texture + ((y & 3) << 3)); + tileRow = (y >> 2) * tileWidth; + for (column = x; column < xEnd; column += 1) { + columnInTile = column & 3; + if (columnInTile == 0) { + cbValue = (s8)*cb++; + crValue = (s8)*cr++; + redOffset = (crValue * 359) >> 8; + greenOffset = -(cbValue * 88 + crValue * 183) >> 8; + blueOffset = (cbValue * 454) >> 8; } - luminance += lumaSkip; - cb += chromaSkip; - cr += chromaSkip; + value = *luminance++; + red = value + redOffset; + blue = value + blueOffset; + green = value + greenOffset; + if ((red | green | blue) >> 8) { + blue = blue > 255 ? 255 : blue < 0 ? 0 : blue; + green = green > 255 ? 255 : green < 0 ? 0 : green; + red = red > 255 ? 255 : red < 0 ? 0 : red; + } + output[columnInTile + (((column >> 2) + tileRow) << 4)] = ((blue & 0xF8) >> 3) + (((red & 0xF8) << 8) + ((green & 0xFC) << 3)); } + luminance += lumaSkip; + cb += chromaSkip; + cr += chromaSkip; } } static void TMCJPEGDEC_converterYUV422toRGB565(TMCCJPEGDecWork* work, s32 x, s32 y) { - s32 chromaSkip; - s32 width; - s32 blue; - u16* output; - s32 red; - s32 tileRow; s32 lumaSkip; + s32 chromaSkip; + u16* output; + s32 tileRow; s32 redOffset; + s32 secondGreen; + s32 red; + s32 secondRed; u8* texture; - TMCCJPEGDecState* state; - s32 crValue; u8* luminance; u8* cb; u8* cr; - s32 height; s32 column; - s32 cbValue; s32 xEnd; s32 yEnd; u32 tileWidth; s32 greenOffset; s32 blueOffset; s32 green; + s32 blue; + s32 value; + TMCCJPEGDecState* state; + s32 width; + s32 height; + s32 crValue; + s32 cbValue; luminance = work->convBuf + 4; cb = &work->convBuf[132]; @@ -366,30 +385,26 @@ static void TMCJPEGDEC_converterYUV422toRGB565(TMCCJPEGDecWork* work, s32 x, s32 redOffset = (crValue * 359) >> 8; greenOffset = -(cbValue * 88 + crValue * 183) >> 8; blueOffset = (cbValue * 454) >> 8; - blue = *luminance++; - green = blue + greenOffset; - red = blue + redOffset; - - - blue = blue + blueOffset; - if ((blue | red | green) >> 8) { + value = *luminance++; + green = value + greenOffset; + red = value + redOffset; + blue = value + blueOffset; + if ((red | green | blue) >> 8) { blue = blue > 255 ? 255 : blue < 0 ? 0 : blue; green = green > 255 ? 255 : green < 0 ? 0 : green; red = red > 255 ? 255 : red < 0 ? 0 : red; } output[(column & 3) + (((column >> 2) + tileRow) << 4)] = ((blue & 0xF8) >> 3) + (((red & 0xF8) << 8) + ((green & 0xFC) << 3)); - blue = *luminance++; - green = blue + greenOffset; - red = blue + redOffset; - - - blue = blue + blueOffset; - if ((blue | red | green) >> 8) { + value = *luminance++; + secondGreen = value + greenOffset; + secondRed = value + redOffset; + blue = value + blueOffset; + if ((secondRed | secondGreen | blue) >> 8) { blue = blue > 255 ? 255 : blue < 0 ? 0 : blue; - green = green > 255 ? 255 : green < 0 ? 0 : green; - red = red > 255 ? 255 : red < 0 ? 0 : red; + secondGreen = secondGreen > 255 ? 255 : secondGreen < 0 ? 0 : secondGreen; + secondRed = secondRed > 255 ? 255 : secondRed < 0 ? 0 : secondRed; } - output[((column + 1) & 3) + ((((column + 1) >> 2) + tileRow) << 4)] = ((blue & 0xF8) >> 3) + (((red & 0xF8) << 8) + ((green & 0xFC) << 3)); + output[((column + 1) & 3) + ((((column + 1) >> 2) + tileRow) << 4)] = ((blue & 0xF8) >> 3) + (((secondRed & 0xF8) << 8) + ((secondGreen & 0xFC) << 3)); } luminance += lumaSkip; cb += chromaSkip; @@ -473,101 +488,93 @@ static void TMCJPEGDEC_converterYUV422toRGB565edge(TMCCJPEGDecWork* work, s32 x, } static void TMCJPEGDEC_converterYUV420toRGB565(TMCCJPEGDecWork* work, s32 x, s32 y) { - u16* output; - s32 width; - s32 redOffset; - s32 green; - s32 tileRow; s32 lumaSkip; s32 chromaSkip; - s32 height; + s32 chromaWidth; + u16* output; + s32 tileRow; + s32 redOffset; + s32 secondGreen; + s32 red; + s32 secondRed; u8* texture; u8* luminance; - s32 crValue; - s32 value; u8* cb; u8* cr; s32 column; s32 xEnd; s32 yEnd; u32 tileWidth; - s32 cbValue; s32 greenOffset; s32 blueOffset; - s32 red; - TMCCJPEGDecState* state; + s32 green; s32 blue; + s32 value; + TMCCJPEGDecState* state; + s32 width; + s32 height; + s32 crValue; + s32 cbValue; luminance = work->convBuf + 4; - cb = work->convBuf + 260; - cr = work->convBuf + 324; + cb = &work->convBuf[260]; + cr = &work->convBuf[324]; state = work->pState; tileWidth = state->convWidth >> 2; texture = state->pTexBuffer; - width = 16 / state->scaleFactor; height = 16 / state->scaleFactor; - { - xEnd = x + width; - yEnd = y + height; - lumaSkip = 16 - width; - chromaSkip = lumaSkip >> 1; - for (; y < yEnd; y++) { - tileRow = (y >> 2) * tileWidth; - output = (u16*)(texture + ((y & 3) << 3)); - - for (column = x; column < xEnd; column += 2) { - - { - cbValue = (s8)*cb++; - crValue = (s8)*cr++; - redOffset = (crValue * 359) >> 8; - greenOffset = -(cbValue * 88 + crValue * 183) >> 8; - blueOffset = (cbValue * 454) >> 8; - } - { - value = *luminance++; - red = value + redOffset; - green = value + greenOffset; - blue = value + blueOffset; - if ((blue | red | green) >> 8) { - blue = blue > 255 ? 255 : blue < 0 ? 0 : blue; - green = green > 255 ? 255 : green < 0 ? 0 : green; - red = red > 255 ? 255 : red < 0 ? 0 : red; - } - output[(column & 3) + ((((column) >> 2) + tileRow) << 4)] = - ((blue & 0xF8) >> 3) + ((red & 0xF8) << 8) + ((green & 0xFC) << 3); - } - { - value = *luminance++; - red = value + redOffset; - green = value + greenOffset; - blue = value + blueOffset; - if ((blue | red | green) >> 8) { - blue = blue > 255 ? 255 : blue < 0 ? 0 : blue; - green = green > 255 ? 255 : green < 0 ? 0 : green; - red = red > 255 ? 255 : red < 0 ? 0 : red; - } - output[(column + 1 & 3) + ((((column + 1) >> 2) + tileRow) << 4)] = - ((blue & 0xF8) >> 3) + ((red & 0xF8) << 8) + ((green & 0xFC) << 3); - } + xEnd = x + width; + yEnd = y + height; + lumaSkip = 16 - width; + chromaSkip = lumaSkip >> 1; + chromaWidth = (width + 1) >> 1; + for (; y < yEnd; y++) { + output = (u16*)(texture + ((y & 3) << 3)); + tileRow = (y >> 2) * tileWidth; + for (column = x; column < xEnd; column += 2) { + cbValue = (s8)*cb++; + crValue = (s8)*cr++; + redOffset = (crValue * 359) >> 8; + greenOffset = -(cbValue * 88 + crValue * 183) >> 8; + blueOffset = (cbValue * 454) >> 8; + value = *luminance++; + green = value + greenOffset; + red = value + redOffset; + blue = value + blueOffset; + if ((red | green | blue) >> 8) { + blue = blue > 255 ? 255 : blue < 0 ? 0 : blue; + green = green > 255 ? 255 : green < 0 ? 0 : green; + red = red > 255 ? 255 : red < 0 ? 0 : red; } - luminance += lumaSkip; - if (y & 1) { - cb += chromaSkip; - cr += chromaSkip; - } else { - cb -= (width + 1) >> 1; - cr -= (width + 1) >> 1; + output[(column & 3) + (((column >> 2) + tileRow) << 4)] = ((blue & 0xF8) >> 3) + (((red & 0xF8) << 8) + ((green & 0xFC) << 3)); + value = *luminance++; + secondGreen = value + greenOffset; + secondRed = value + redOffset; + blue = value + blueOffset; + if ((secondRed | secondGreen | blue) >> 8) { + blue = blue > 255 ? 255 : blue < 0 ? 0 : blue; + secondGreen = secondGreen > 255 ? 255 : secondGreen < 0 ? 0 : secondGreen; + secondRed = secondRed > 255 ? 255 : secondRed < 0 ? 0 : secondRed; } + output[((column + 1) & 3) + ((((column + 1) >> 2) + tileRow) << 4)] = ((blue & 0xF8) >> 3) + (((secondRed & 0xF8) << 8) + ((secondGreen & 0xFC) << 3)); + } + luminance += lumaSkip; + if (y & 1) { + cb += chromaSkip; + cr += chromaSkip; + } else { + cb -= chromaWidth; + cr -= chromaWidth; } } } static void TMCJPEGDEC_converterYUV420toRGB565edge(TMCCJPEGDecWork* work, s32 x, s32 y) { + s32 lumaSkip; s32 chromaSkip; + s32 chromaWidth; u16* output; - s32 yEnd; s32 tileRow; u8* texture; u8* luminance; @@ -578,9 +585,9 @@ static void TMCJPEGDEC_converterYUV420toRGB565edge(TMCCJPEGDecWork* work, s32 x, s8 cbValue; s32 column; s32 xEnd; + s32 yEnd; s32 height; TMCCJPEGDecState* state; - s32 lumaSkip; u32 tileWidth; s32 redOffset; s32 greenOffset; @@ -606,6 +613,7 @@ static void TMCJPEGDEC_converterYUV420toRGB565edge(TMCCJPEGDecWork* work, s32 x, yEnd = y + height; lumaSkip = 16 - width; chromaSkip = lumaSkip >> 1; + chromaWidth = (width + 1) >> 1; ASSERTLINE((x & 1) == 0, __LINE__); for (; y < yEnd; y++) { output = (u16*)(texture + ((y & 3) << 3)); @@ -621,14 +629,14 @@ static void TMCJPEGDEC_converterYUV420toRGB565edge(TMCCJPEGDecWork* work, s32 x, { s32 value = *luminance++; s32 red = value + redOffset; - s32 blue = value + blueOffset; s32 green = value + greenOffset; - if ((blue | red | green) >> 8) { + s32 blue = value + blueOffset; + if ((red | green | blue) >> 8) { blue = blue > 255 ? 255 : blue < 0 ? 0 : blue; green = green > 255 ? 255 : green < 0 ? 0 : green; red = red > 255 ? 255 : red < 0 ? 0 : red; } - output[(column & 3) + (((column >> 2) + tileRow) << 4)] = ((blue & 0xF8) >> 3) + ((red & 0xF8) << 8) + ((green & 0xFC) << 3); + output[(column & 3) + (((column >> 2) + tileRow) << 4)] = ((blue & 0xF8) >> 3) + (((red & 0xF8) << 8) + ((green & 0xFC) << 3)); } } luminance += lumaSkip; @@ -636,8 +644,8 @@ static void TMCJPEGDEC_converterYUV420toRGB565edge(TMCCJPEGDecWork* work, s32 x, cb += chromaSkip; cr += chromaSkip; } else { - cb -= (width + 1) >> 1; - cr -= (width + 1) >> 1; + cb -= chromaWidth; + cr -= chromaWidth; } } } diff --git a/tools/decomp-assist/rx13.attempts.md b/tools/decomp-assist/rx13.attempts.md new file mode 100644 index 00000000..f0219e09 --- /dev/null +++ b/tools/decomp-assist/rx13.attempts.md @@ -0,0 +1,389 @@ +# rx13 allocator investigation + +Base 124c4df0, branch agent/w1005/rx13, 43U only. Source and object snapshots under build/rx13. Assigned sources match fetched origin/main. Read AGENTS.md, f-round.md, common.md, levers.md including 20-22, mwdbg README, prior tex1 and JPEG remainder attempts. + +Acceptance requires a new exact-name objdiff 100% function, zero ctxdiff differences, unchanged pools and prior exact functions, readable equivalent source, and the full non-quick gate. No linking configuration changes in this round. + +mwdbg launcher private copy build/rx13/mwdbg.py changes only capture-path validation and GDB cwd to keep outputs in this worktree. Original compiler/driver and shared debugger lock are unchanged. The tool-owned lock is required to serialize port 9001. + +Baseline pools: RGBA8 0/0 strings; RGB565 0/0; ESMisc 114/114, all identical. + +| Function | Baseline objdiff | +| --- | ---: | +| DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap | 99.14254 | +| TMCJPEGDEC_set_converterRGB565 | 93.91765 | +| TMCJPEGDEC_converterYUV411toRGB565 | 91.17512 | +| TMCJPEGDEC_converterYUV411toRGB565edge | 95.42453 | +| TMCJPEGDEC_converterYUV422toRGB565 | 97.132355 | +| TMCJPEGDEC_converterYUV420toRGB565 | 95.42553 | +| TMCJPEGDEC_converterYUV420toRGB565edge | 97.850876 | +| TMCJPEGDEC_set_converterRGBA8 | 93.91765 | +| TMCJPEGDEC_converterYUV411toRGBA8 | 82.70661 | +| TMCJPEGDEC_converterYUV411toRGBA8edge | 94.28571 | +| TMCJPEGDEC_converterYUV422toRGBA8 | 88.195946 | +| TMCJPEGDEC_converterYUV422toRGBA8edge | 92.0354 | +| TMCJPEGDEC_converterYUV420toRGBA8 | 90.973854 | +| TMCJPEGDEC_converterYUV420toRGBA8edge | 87.5 | +| TMCJPEGDEC_converterYUV211toRGBA8 | 91.15385 | +| TMCJPEGDEC_converterYUV211toRGBA8edge | 92.17391 | +| TMCJPEGDEC_converterYUV444toRGBA8 | 90.670105 | +| TMCJPEGDEC_converterYUV444toRGBA8edge | 88.90909 | + +TRIAL {"label": "rgba-baseline", "unit": "rgba", "scores": {"TMCJPEGDEC_set_converterRGBA8": 93.91765, "TMCJPEGDEC_converterYUV411toRGBA8": 82.70661, "TMCJPEGDEC_converterYUV411toRGBA8edge": 94.28571, "TMCJPEGDEC_converterYUV422toRGBA8": 88.195946, "TMCJPEGDEC_converterYUV422toRGBA8edge": 92.0354, "TMCJPEGDEC_converterYUV420toRGBA8": 90.973854, "TMCJPEGDEC_converterYUV420toRGBA8edge": 87.5, "TMCJPEGDEC_converterYUV211toRGBA8": 91.15385, "TMCJPEGDEC_converterYUV211toRGBA8edge": 92.17391, "TMCJPEGDEC_converterYUV444toRGBA8": 90.670105, "TMCJPEGDEC_converterYUV444toRGBA8edge": 88.90909}, "exact": 2, "drops": [], "why": "Snapshot compiler must reproduce the baseline before allocator experiments.", "sha256": "75e33386739273752329ebd7f48e4882d4a8b4f3f6282a88e3f1d59ba735bbb8"} + +TRIAL {"label": "rgb-baseline", "unit": "rgb", "scores": {"TMCJPEGDEC_set_converterRGB565": 93.91765, "TMCJPEGDEC_converterYUV411toRGB565": 91.17512, "TMCJPEGDEC_converterYUV411toRGB565edge": 95.42453, "TMCJPEGDEC_converterYUV422toRGB565": 97.132355, "TMCJPEGDEC_converterYUV420toRGB565": 95.42553, "TMCJPEGDEC_converterYUV420toRGB565edge": 97.850876}, "exact": 7, "drops": [], "why": "Snapshot compiler must reproduce the baseline before allocator experiments.", "sha256": "dce003b060d55cc3ed3e9c4b8be80fe2294a6bd78c8593cc9f5489389c25ef8a"} + +TRIAL {"label": "es-baseline", "unit": "es", "scores": {"DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap": 99.14254}, "exact": 30, "drops": [], "why": "Snapshot compiler must reproduce the baseline before allocator experiments.", "sha256": "0200986cdbd2cd1abb089fa86e964b4a4db0627b18450607bccaeec1422e6069"} + +TRIAL {"label": "rgba-set-buffer-parameter", "unit": "rgba", "scores": {"TMCJPEGDEC_set_converterRGBA8": 93.829414}, "exact": 2, "drops": ["TMCJPEGDEC_set_converterRGBA8"], "why": "Give converter configuration a real buffer parameter boundary, so address folding occurs before inlining.", "sha256": "e407a04b51f8e3b83cdc719f0a34a63b6de5b6b2789af0e7593cdecee817b482"} + +TRIAL {"label": "rgb-set-buffer-parameter", "unit": "rgb", "scores": {"TMCJPEGDEC_set_converterRGB565": 93.829414}, "exact": 7, "drops": ["TMCJPEGDEC_set_converterRGB565"], "why": "Give converter configuration a real buffer parameter boundary, so address folding occurs before inlining.", "sha256": "9286d6af33d9dc3475664b87f2b9a716b3068e60380518e1c3162a81440bdac1"} + +TRIAL {"label": "rgba444-reuse-value-alpha", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV444toRGBA8": 90.670105}, "exact": 2, "drops": [], "why": "Target stores alpha-red in r23, also used for the consumed luminance. Reuse that real pixel local for packed alpha-red.", "sha256": "3e29eb7e5601cf39a5ccca9ff63118367c2f3fe39b537fd2e27e76d7e7fb92bd"} + +TRIAL {"label": "rgba444-reuse-chroma-tile", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV444toRGBA8": 90.670105}, "exact": 2, "drops": [], "why": "Target tile-column sum overwrites its shifted input; name the shared tile index in the expired Cb local.", "sha256": "1d468c871a3727d401fa9aaba3cdfcc822206f25ced4ccf57464157b2cb1d562"} + +TRIAL {"label": "rgba444-separate-alpha-stages", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV444toRGBA8": 79.68041}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV444toRGBA8"], "why": "Target addis and final addi use distinct registers. Separate byte conversion and packed color through the existing pixel locals.", "sha256": "424b8317ec84f37b73d5927e5762865fd585eb89b7f271491a514be43f39705e"} + +TRIAL {"label": "rgba-set-word-buffer", "unit": "rgba", "build": 2, "why": "Compare pointer scaling versus integer address materialization at the single source buffer declaration. Diagnostic rejected unless normal readable source results."} + +TRIAL {"label": "rgba-set-integer-buffer", "unit": "rgba", "build": 2, "why": "Compare pointer scaling versus integer address materialization at the single source buffer declaration. Diagnostic rejected unless normal readable source results."} + +TRIAL {"label": "rgb-set-word-buffer", "unit": "rgb", "build": 2, "why": "Compare pointer scaling versus integer address materialization at the single source buffer declaration. Diagnostic rejected unless normal readable source results."} + +TRIAL {"label": "rgb-set-integer-buffer", "unit": "rgb", "build": 2, "why": "Compare pointer scaling versus integer address materialization at the single source buffer declaration. Diagnostic rejected unless normal readable source results."} + +TRIAL {"label": "es-title-local-inside", "unit": "es", "scores": {"DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap": 98.06682}, "exact": 30, "drops": ["DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap"], "why": "Target keeps title halves in r20/r19, below saveData r30 and deletion flag r31. Name the current title in the caller so it no longer starts as a late inline-argument temporary.", "sha256": "4d5eaf1d045d0928f4356a2a152f7306d8bbb2fa46af28b98d41efde1dfbffd3"} + +TRIAL {"label": "es-title-local-before-index", "unit": "es", "scores": {"DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap": 98.06682}, "exact": 30, "drops": ["DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap"], "why": "Target keeps title halves in r20/r19, below saveData r30 and deletion flag r31. Name the current title in the caller so it no longer starts as a late inline-argument temporary.", "sha256": "d751352de013f18f3d79074cbbd9df13ebe5cc18184f096d2a3b5c5652a976c3"} + +TRIAL {"label": "es-title-local-after-scratch", "unit": "es", "scores": {"DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap": 98.06682}, "exact": 30, "drops": ["DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap"], "why": "Target keeps title halves in r20/r19, below saveData r30 and deletion flag r31. Name the current title in the caller so it no longer starts as a late inline-argument temporary.", "sha256": "72d0138911b7d2d314ecaeb18bebb426dd40cf1527d82f6631f3a816aaa0802c"} + +TRIAL {"label": "rgba-set-integer-buffer-fixed", "unit": "rgba", "scores": {"TMCJPEGDEC_set_converterRGBA8": 93.91765}, "exact": 2, "drops": [], "why": "Keep the shared buffer address as an integer through case offset formation; tests whether pointer folding removes the target entry addi.", "sha256": "a16b2c99b6302db540886ca8d8467a5289f55cacfeb1aa7e042a454ca0d35429"} + +TRIAL {"label": "rgba-set-luma-buffer-base", "unit": "rgba", "scores": {"TMCJPEGDEC_set_converterRGBA8": 83.91765}, "exact": 2, "drops": ["TMCJPEGDEC_set_converterRGBA8"], "why": "Keep buffer as the real first-luminance byte across the switch and use relative chroma displacements.", "sha256": "ebae31dbe1a823e9eb1cd7667f47e48207ebe3ca865ec88f7151f18bffac251d"} + +TRIAL {"label": "rgb-set-integer-buffer-fixed", "unit": "rgb", "scores": {"TMCJPEGDEC_set_converterRGB565": 93.91765}, "exact": 7, "drops": [], "why": "Keep the shared buffer address as an integer through case offset formation; tests whether pointer folding removes the target entry addi.", "sha256": "d058a6d355943651ca235b296848379e0c655d2a4bdf803693488417814284ae"} + +TRIAL {"label": "rgb-set-luma-buffer-base", "unit": "rgb", "scores": {"TMCJPEGDEC_set_converterRGB565": 83.91765}, "exact": 7, "drops": ["TMCJPEGDEC_set_converterRGB565"], "why": "Keep buffer as the real first-luminance byte across the switch and use relative chroma displacements.", "sha256": "46877cc507d89aaea30150cc15610133732a8ae2a1122d571bd7a45e28caa82c"} + +TRIAL {"label": "es-verify-local-title", "unit": "es", "scores": {"DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap": 98.32962}, "exact": 30, "drops": ["DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap"], "why": "Inspect whether title value identity across the real verifySavedataZD inline boundary changes saveData and deleteSaveData priority without changing control flow.", "sha256": "360066fa50eb68a060f5d86315242f87fbfce9f3c562b539d997662956536c04", "instructions": {"DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap": {"counts": [449, 449], "diffs": 145}}} + +TRIAL {"label": "es-verify-ref-title", "unit": "es", "scores": {"DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap": 93.191536}, "exact": 30, "drops": ["DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap"], "why": "Inspect whether title value identity across the real verifySavedataZD inline boundary changes saveData and deleteSaveData priority without changing control flow.", "sha256": "cd5fb965bff646ad97a8481780c0887c9cbdd1096beadac3c4a770b814f5084b", "instructions": {"DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap": {"counts": [451, 449], "diffs": null}}} + +TRIAL {"label": "es-verify-const-title", "unit": "es", "scores": {"DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap": 99.14254}, "exact": 30, "drops": [], "why": "Inspect whether title value identity across the real verifySavedataZD inline boundary changes saveData and deleteSaveData priority without changing control flow.", "sha256": "c27c0dfc964d895c59135cbb9ce5d562dd462175c733da685e513028623c5c57", "instructions": {"DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap": {"counts": [449, 449], "diffs": 74}}} + +Search wrapper fixes function-definition selection. Shared srcsearch.py selects the first prototype of TMC converter names and would mutate the setter instead. Private copy build/rx13/srcsearch.py requires a definition opening brace, preserves all mutation semantics guards and the global 24-slot limiter. + +TRIAL {"label": "rgba-all-alpha-helper", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV411toRGBA8": 81.82645, "TMCJPEGDEC_converterYUV411toRGBA8edge": 86.70536, "TMCJPEGDEC_converterYUV422toRGBA8": 88.195946, "TMCJPEGDEC_converterYUV422toRGBA8edge": 92.0354, "TMCJPEGDEC_converterYUV420toRGBA8": 90.973854, "TMCJPEGDEC_converterYUV420toRGBA8edge": 87.5, "TMCJPEGDEC_converterYUV211toRGBA8": 91.15385, "TMCJPEGDEC_converterYUV211toRGBA8edge": 92.17391, "TMCJPEGDEC_converterYUV444toRGBA8": 90.670105, "TMCJPEGDEC_converterYUV444toRGBA8edge": 88.90909}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV411toRGBA8", "TMCJPEGDEC_converterYUV411toRGBA8edge"], "why": "Separate alpha-helper value creation at its real computation boundary; inspect packing scheduling and temporary allocation across all ten color converters.", "sha256": "f692ab6a142068f93da4a2f52b870c7e8596520f5a3b76314d4182036de1b1b9", "instructions": {"TMCJPEGDEC_converterYUV411toRGBA8": {"counts": [242, 242], "diffs": 146}, "TMCJPEGDEC_converterYUV411toRGBA8edge": {"counts": [112, 112], "diffs": 76}, "TMCJPEGDEC_converterYUV422toRGBA8": {"counts": [148, 148], "diffs": 80}, "TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 51}, "TMCJPEGDEC_converterYUV420toRGBA8": {"counts": [153, 153], "diffs": 76}, "TMCJPEGDEC_converterYUV420toRGBA8edge": {"counts": [120, 120], "diffs": 77}, "TMCJPEGDEC_converterYUV211toRGBA8": {"counts": [104, 104], "diffs": 49}, "TMCJPEGDEC_converterYUV211toRGBA8edge": {"counts": [115, 115], "diffs": 47}, "TMCJPEGDEC_converterYUV444toRGBA8": {"counts": [97, 97], "diffs": 46}, "TMCJPEGDEC_converterYUV444toRGBA8edge": {"counts": [110, 110], "diffs": 61}}} + +TRIAL {"label": "rgba-all-tile-helper", "unit": "rgba", "build": 2, "why": "Separate tile-helper value creation at its real computation boundary; inspect packing scheduling and temporary allocation across all ten color converters."} + +TRIAL {"label": "rgba-all-channel-width-helper", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV411toRGBA8": 82.76859, "TMCJPEGDEC_converterYUV411toRGBA8edge": 94.28571, "TMCJPEGDEC_converterYUV422toRGBA8": 84.85135, "TMCJPEGDEC_converterYUV422toRGBA8edge": 92.0354, "TMCJPEGDEC_converterYUV420toRGBA8": 85.07843, "TMCJPEGDEC_converterYUV420toRGBA8edge": 87.5, "TMCJPEGDEC_converterYUV211toRGBA8": 91.15385, "TMCJPEGDEC_converterYUV211toRGBA8edge": 92.17391, "TMCJPEGDEC_converterYUV444toRGBA8": 90.670105, "TMCJPEGDEC_converterYUV444toRGBA8edge": 88.90909}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV422toRGBA8", "TMCJPEGDEC_converterYUV420toRGBA8"], "why": "Separate channel-width-helper value creation at its real computation boundary; inspect packing scheduling and temporary allocation across all ten color converters.", "sha256": "12e8fe6aa245b674a1028c69e444ebf21ab0242cff39ecd6c6df1bb902978127", "instructions": {"TMCJPEGDEC_converterYUV411toRGBA8": {"counts": [242, 242], "diffs": 148}, "TMCJPEGDEC_converterYUV411toRGBA8edge": {"counts": [112, 112], "diffs": 51}, "TMCJPEGDEC_converterYUV422toRGBA8": {"counts": [148, 148], "diffs": 114}, "TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 51}, "TMCJPEGDEC_converterYUV420toRGBA8": {"counts": [153, 153], "diffs": 127}, "TMCJPEGDEC_converterYUV420toRGBA8edge": {"counts": [120, 120], "diffs": 77}, "TMCJPEGDEC_converterYUV211toRGBA8": {"counts": [104, 104], "diffs": 49}, "TMCJPEGDEC_converterYUV211toRGBA8edge": {"counts": [115, 115], "diffs": 47}, "TMCJPEGDEC_converterYUV444toRGBA8": {"counts": [97, 97], "diffs": 46}, "TMCJPEGDEC_converterYUV444toRGBA8edge": {"counts": [110, 110], "diffs": 61}}} + +TRIAL {"label": "rgba-all-tile-helper-fixed", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV411toRGBA8": 82.70661, "TMCJPEGDEC_converterYUV411toRGBA8edge": 94.24107, "TMCJPEGDEC_converterYUV422toRGBA8": 88.12838, "TMCJPEGDEC_converterYUV422toRGBA8edge": 91.99115, "TMCJPEGDEC_converterYUV420toRGBA8": 90.90849, "TMCJPEGDEC_converterYUV420toRGBA8edge": 87.5, "TMCJPEGDEC_converterYUV211toRGBA8": 91.10577, "TMCJPEGDEC_converterYUV211toRGBA8edge": 92.13043, "TMCJPEGDEC_converterYUV444toRGBA8": 90.61855, "TMCJPEGDEC_converterYUV444toRGBA8edge": 88.86364}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV411toRGBA8edge", "TMCJPEGDEC_converterYUV422toRGBA8", "TMCJPEGDEC_converterYUV422toRGBA8edge", "TMCJPEGDEC_converterYUV420toRGBA8", "TMCJPEGDEC_converterYUV211toRGBA8", "TMCJPEGDEC_converterYUV211toRGBA8edge", "TMCJPEGDEC_converterYUV444toRGBA8", "TMCJPEGDEC_converterYUV444toRGBA8edge"], "why": "Real tile-column helper names the input and output of the shared address computation. Corrected replacement preserves balanced expression parentheses.", "sha256": "e8e8b31cdcf2bf929bc547d3c30a77b99c8d0a939f688b437ddf96c0dbb078c5", "instructions": {"TMCJPEGDEC_converterYUV411toRGBA8": {"counts": [242, 242], "diffs": 153}, "TMCJPEGDEC_converterYUV411toRGBA8edge": {"counts": [112, 112], "diffs": 51}, "TMCJPEGDEC_converterYUV422toRGBA8": {"counts": [148, 148], "diffs": 80}, "TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 51}, "TMCJPEGDEC_converterYUV420toRGBA8": {"counts": [153, 153], "diffs": 76}, "TMCJPEGDEC_converterYUV420toRGBA8edge": {"counts": [120, 120], "diffs": 77}, "TMCJPEGDEC_converterYUV211toRGBA8": {"counts": [104, 104], "diffs": 49}, "TMCJPEGDEC_converterYUV211toRGBA8edge": {"counts": [115, 115], "diffs": 47}, "TMCJPEGDEC_converterYUV444toRGBA8": {"counts": [97, 97], "diffs": 46}, "TMCJPEGDEC_converterYUV444toRGBA8edge": {"counts": [110, 110], "diffs": 61}}} + +TRIAL {"label": "rgb-all-channel-helper", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV411toRGB565": 88.44701, "TMCJPEGDEC_converterYUV411toRGB565edge": 95.42453, "TMCJPEGDEC_converterYUV422toRGB565": 91.54412, "TMCJPEGDEC_converterYUV420toRGB565": 91.82979, "TMCJPEGDEC_converterYUV420toRGB565edge": 97.850876}, "exact": 7, "drops": ["TMCJPEGDEC_converterYUV411toRGB565", "TMCJPEGDEC_converterYUV422toRGB565", "TMCJPEGDEC_converterYUV420toRGB565"], "why": "Change channel-helper at its value definition boundary; compare target operand registers and preserve all matched sibling functions.", "sha256": "9d211cca3861aed64f4672a9d0b49eef6914ab0aa6094f73bbb784b70e6c087c", "instructions": {"TMCJPEGDEC_converterYUV411toRGB565": {"counts": [217, 217], "diffs": 159}, "TMCJPEGDEC_converterYUV411toRGB565edge": {"counts": [106, 106], "diffs": 61}, "TMCJPEGDEC_converterYUV422toRGB565": {"counts": [136, 136], "diffs": 93}, "TMCJPEGDEC_converterYUV420toRGB565": {"counts": [141, 141], "diffs": 104}, "TMCJPEGDEC_converterYUV420toRGB565edge": {"counts": [114, 114], "diffs": 35}}} + +TRIAL {"label": "rgb-all-tile-helper", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV411toRGB565": 91.08295, "TMCJPEGDEC_converterYUV411toRGB565edge": 95.37736, "TMCJPEGDEC_converterYUV422toRGB565": 97.02206, "TMCJPEGDEC_converterYUV420toRGB565": 95.35461, "TMCJPEGDEC_converterYUV420toRGB565edge": 97.76316}, "exact": 7, "drops": ["TMCJPEGDEC_converterYUV411toRGB565", "TMCJPEGDEC_converterYUV411toRGB565edge", "TMCJPEGDEC_converterYUV422toRGB565", "TMCJPEGDEC_converterYUV420toRGB565", "TMCJPEGDEC_converterYUV420toRGB565edge"], "why": "Change tile-helper at its value definition boundary; compare target operand registers and preserve all matched sibling functions.", "sha256": "bbb4089ac49e784290edb01f06a17110081cde040c8ea9241e0ddf62a3816487", "instructions": {"TMCJPEGDEC_converterYUV411toRGB565": {"counts": [217, 217], "diffs": 141}, "TMCJPEGDEC_converterYUV411toRGB565edge": {"counts": [106, 106], "diffs": 61}, "TMCJPEGDEC_converterYUV422toRGB565": {"counts": [136, 136], "diffs": 53}, "TMCJPEGDEC_converterYUV420toRGB565": {"counts": [141, 141], "diffs": 80}, "TMCJPEGDEC_converterYUV420toRGB565edge": {"counts": [114, 114], "diffs": 36}}} + +TRIAL {"label": "rgb-all-value-scope", "unit": "rgb", "build": 2, "why": "Change value-scope at its value definition boundary; compare target operand registers and preserve all matched sibling functions."} + +Debugger queue recovery: cancelled only rx13 launchers [59529, 4009622, 4172541]. A private retrowin32 copy changes only the unique x86 movw immediate supplying the localhost GDB port, 9001 to 19113, verified against debugger.rs:881 and native disassembly. Private GDB driver changes only the connection port and resource root. Private port has its own lock; port 9001 and other workers are untouched. Compiler and code-generation flags are unchanged. Proof: build/rx13/port-change.json. Setter capture is whole-object byte-identical to the normal build, SHA256 9f1c539c06a7b017a215c41317d40861572e97407aa738791b14bb0f9e4bcdd8. + +SETTER ALLOCATOR EXPLANATION: target r4 is work->convBuf, r5 is state. Initial PCode defines buffer r47 = r32 + 6232 and state r46 = *(r32 + 6628). Before-regalloc PCode has removed r47 and folded every case address into r3 + full offset. r47 has zero edges and no surviving uses; no coloring can recover its target r4. State r46 has 82 neighbors, colors first to r4; the target buffer would occupy that first color and shift state to r5. This is pre-allocation address propagation, not a register-priority tie. Full dumps: build/rx13/mwdbg/rgba-set-private. Buffer parameter, integer-address and first-luminance-base source variants did not restore target output; none retained. + +TRIAL {"label": "rgb-all-clamp-helper", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV411toRGB565": 91.17512, "TMCJPEGDEC_converterYUV411toRGB565edge": 95.42453, "TMCJPEGDEC_converterYUV422toRGB565": 97.132355, "TMCJPEGDEC_converterYUV420toRGB565": 95.42553, "TMCJPEGDEC_converterYUV420toRGB565edge": 97.850876}, "exact": 7, "drops": [], "why": "Preserve exact clipping branch polarity while naming the channel value across a scalar inline helper; tests whether generated mask temporaries change priority.", "sha256": "727e336f4fbf473857e264f367dd82f11424ab63d8f78bf2894720db7656419d", "instructions": {"TMCJPEGDEC_converterYUV411toRGB565": {"counts": [217, 217], "diffs": 141}, "TMCJPEGDEC_converterYUV411toRGB565edge": {"counts": [106, 106], "diffs": 61}, "TMCJPEGDEC_converterYUV422toRGB565": {"counts": [136, 136], "diffs": 52}, "TMCJPEGDEC_converterYUV420toRGB565": {"counts": [141, 141], "diffs": 80}, "TMCJPEGDEC_converterYUV420toRGB565edge": {"counts": [114, 114], "diffs": 35}}} + +TRIAL {"label": "rgba444-index-outer", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV444toRGBA8": 92.37113}, "exact": 2, "drops": [], "why": "mwdbg priority starts with CSE x&3 r55 -> r0, blocking rowSkip. Give the true shared tile coordinates a named source identity and declare rowSkip first.", "sha256": "4ad4cc7be773013a59222e82340376a69694c8079ec3fd4c2424de4f3b6a5fe0", "instructions": {"TMCJPEGDEC_converterYUV444toRGBA8": {"counts": [97, 97], "diffs": 25}}} + +TRIAL {"label": "rgba444-index-inner", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV444toRGBA8": 86.64948}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV444toRGBA8"], "why": "mwdbg priority starts with CSE x&3 r55 -> r0, blocking rowSkip. Give the true shared tile coordinates a named source identity and declare rowSkip first.", "sha256": "b82321ca6c32a71131b0b98eb4a2fe9031aa2559784d867dd953f834ef868b06", "instructions": {"TMCJPEGDEC_converterYUV444toRGBA8": {"counts": [97, 97], "diffs": 76}}} + +TRIAL {"label": "rgba444-index-reuse-width", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV444toRGBA8": 90.30928}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV444toRGBA8"], "why": "mwdbg priority starts with CSE x&3 r55 -> r0, blocking rowSkip. Give the true shared tile coordinates a named source identity and declare rowSkip first.", "sha256": "183d415ceeb86cb83c5eefd52980f8c89395719b21e33112aabe7260f3960298", "instructions": {"TMCJPEGDEC_converterYUV444toRGBA8": {"counts": [97, 97], "diffs": 49}}} + +TRIAL {"label": "rgba444-split-tile-sum", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV444toRGBA8": 92.37113}, "exact": 2, "drops": [], "why": "mwdbg shows tile sum gets r22 only after packing temporaries; target reuses r23 for the shift and row addition. Split that real accumulation into successive assignments.", "sha256": "3c0ed5624d2f567110ea3afecce937b74a13363fc1d6c3ff6861bdfd7b7343ec", "instructions": {"TMCJPEGDEC_converterYUV444toRGBA8": {"counts": [97, 97], "diffs": 25}}} + +TRIAL {"label": "rgba444-tile-stages", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV444toRGBA8": 82.52577}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV444toRGBA8"], "why": "mwdbg shows tile sum gets r22 only after packing temporaries; target reuses r23 for the shift and row addition. Split that real accumulation into successive assignments.", "sha256": "028ce1425ae1c468a8115dd0b684c3339e03bb8cb264a31fb7b4ece47a9018e4", "instructions": {"TMCJPEGDEC_converterYUV444toRGBA8": {"counts": [97, 97], "diffs": 77}}} + +TRIAL {"label": "rgba444-combine-before-mask", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV444toRGBA8": 92.37113}, "exact": 2, "drops": [], "why": "mwdbg shows tile sum gets r22 only after packing temporaries; target reuses r23 for the shift and row addition. Split that real accumulation into successive assignments.", "sha256": "769c7cf82699931bfbd63610f3da955c396a83036c60bdfef380bc1167c472fb", "instructions": {"TMCJPEGDEC_converterYUV444toRGBA8": {"counts": [97, 97], "diffs": 25}}} + +ESMisc debugger compatibility: original flags fail before code generation at 0x47e090. Preprocessing is rejected as a trace input because MWCC -E output loses packed type layout and changes 25 .text bytes. Diagnostic omission of -enc SJIS is whole-object byte-identical under normal wibo and is being tried only for debugger compatibility. Production flags remain unchanged. + +TRIAL {"label": "rgb420edge-explicit-chroma-width", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV420toRGB565edge": 98.50877}, "exact": 7, "drops": [], "why": "mwdbg CSE rewind r59 claims r0 first. Name actual chroma width, put lumaSkip first and yEnd by xEnd to target r0/r3/r6 and r29.", "sha256": "6ca3b1e00cc2883ab153dc8449ad94015156980576b379c2f93ab739dcd5d00b", "instructions": {"TMCJPEGDEC_converterYUV420toRGB565edge": {"counts": [114, 114], "diffs": 21}}} + +TRIAL {"label": "rgb420edge-target-channel-order", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV420toRGB565edge": 98.99123}, "exact": 7, "drops": [], "why": "Preserve target red r24 and swap green/blue priority to r23/r22 by natural RGB declaration order.", "sha256": "0aa1e43801242846b9f67bf42a0d2323486aa62fa0204b2b0fc5f90fa1dbfc22", "instructions": {"TMCJPEGDEC_converterYUV420toRGB565edge": {"counts": [114, 114], "diffs": 12}}} + +TRIAL {"label": "rgb420edge-rgb-guard", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV420toRGB565edge": 99.29825}, "exact": 7, "drops": [], "why": "Use RGB guard operand order after naming rewind width, matching target first-channel evaluation order.", "sha256": "b4534d1b1bf40672300bb820112ae9a43790b0e940cc40c453a8615626ac3f86", "instructions": {"TMCJPEGDEC_converterYUV420toRGB565edge": {"counts": [114, 114], "diffs": 8}}} + +TRIAL {"label": "rgb420edge-pack-blue-red-green", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV420toRGB565edge": 100.0}, "exact": 8, "drops": [], "why": "All persistent target colors now agree. Residual packing values color in reverse temporary creation order; test arithmetic association and explicitly named channel fields.", "sha256": "ef9b3c83a89616940f1a579c7f9b2b7097be8424453001903332416a3015859b", "instructions": {"TMCJPEGDEC_converterYUV420toRGB565edge": {"counts": [114, 114], "diffs": 0}}} + +TRIAL {"label": "rgb420edge-pack-named-parts", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV420toRGB565edge": 99.29825}, "exact": 7, "drops": [], "why": "All persistent target colors now agree. Residual packing values color in reverse temporary creation order; test arithmetic association and explicitly named channel fields.", "sha256": "76a2871984f9551d836ee7f5bfafa8e44d1215a76477a9194ffecb74c244ace5", "instructions": {"TMCJPEGDEC_converterYUV420toRGB565edge": {"counts": [114, 114], "diffs": 8}}} + +TRIAL {"label": "rgb420edge-pack-red-blue-green", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV420toRGB565edge": 97.350876}, "exact": 7, "drops": ["TMCJPEGDEC_converterYUV420toRGB565edge"], "why": "All persistent target colors now agree. Residual packing values color in reverse temporary creation order; test arithmetic association and explicitly named channel fields.", "sha256": "d7150754a40bc8c565e06bbce3172477c41da1f5ad77ae5176f147db0090cf85", "instructions": {"TMCJPEGDEC_converterYUV420toRGB565edge": {"counts": [114, 114], "diffs": 39}}} + +ESMisc ASCII trace exposed case-sensitive retrowin32 include resolution: nw4r/lyt/textbox.h cannot open the actual textBox.h. Private caseinclude contains symlinks to original headers; adding it to debugger inputs is whole-object byte-identical under wibo. No header or normal build flag was edited. + +TRIAL {"label": "rgba444-store-helper-arguments", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV444toRGBA8": 90.30928}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV444toRGBA8"], "why": "Move actual RGBA8 plane stores into a scalar pixel writer. Target tile-sum priority must precede alpha packing temporaries; this changes source creation order through a meaningful inline boundary.", "sha256": "6cac879a65fcb697d9dcb91fef50eb7a1a0af7565a1bd743599788d5aeda2e91", "instructions": {"TMCJPEGDEC_converterYUV444toRGBA8": {"counts": [97, 97], "diffs": 49}}} + +TRIAL {"label": "rgba444-store-helper-named-indices", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV444toRGBA8": 90.30928}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV444toRGBA8"], "why": "Move actual RGBA8 plane stores into a scalar pixel writer. Target tile-sum priority must precede alpha packing temporaries; this changes source creation order through a meaningful inline boundary.", "sha256": "14f9ccd67313dffcd6717e4bb71192c33c2f348240d0b6fd4ea0d56789c116ff", "instructions": {"TMCJPEGDEC_converterYUV444toRGBA8": {"counts": [97, 97], "diffs": 49}}} + +TRIAL {"label": "rgba444-store-helper-const-arguments", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV444toRGBA8": 90.30928}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV444toRGBA8"], "why": "Move actual RGBA8 plane stores into a scalar pixel writer. Target tile-sum priority must precede alpha packing temporaries; this changes source creation order through a meaningful inline boundary.", "sha256": "7b349212e2ce7c552682fcd43b1abd5e00e3627b21234f0eef87f97f15506544", "instructions": {"TMCJPEGDEC_converterYUV444toRGBA8": {"counts": [97, 97], "diffs": 49}}} + +RGB420edge EXACT allocator confirmation: baseline synthetic rewind-count @1344/r59 colors first to r0, chromaSkip r58->r3, output r57->r6, yEnd r56->r7, lumaSkip r43->r29. Explicit chromaWidth eliminates the synthetic priority head; first source declarations lumaSkip/chromaSkip/chromaWidth/output now receive r0/r3/r6/r7, and yEnd moves beside xEnd to r29. RGB declaration and guard order fix red/green/blue as r24/r23/r22. Parenthesizing red+green inside the packed blue+... expression gives the target temporary creation order, blue-mask r18, red-mask r19, green-mask r20. Candidate 100%, 114/114 instructions, diffs 0; full trace and normal snapshot objects are identical. Trace: build/rx13/trials/rgb420edge-pack-blue-red-green/trace. + +TRIAL {"label": "rgb422-rgb-guard", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV422toRGB565": 96.76471}, "exact": 8, "drops": ["TMCJPEGDEC_converterYUV422toRGB565"], "why": "As in exact 420 edge, RGB guard order asks the scheduler for red before blue before green and lets second green reuse the expired red offset.", "sha256": "99a20f9c38fd90e3cde87fc47ed6b3daf4017563cc20c8eadc067145f4827c8a", "instructions": {"TMCJPEGDEC_converterYUV422toRGB565": {"counts": [136, 136], "diffs": 60}}} + +TRIAL {"label": "rgb422-guard-priority", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV422toRGB565": 97.02206}, "exact": 8, "drops": ["TMCJPEGDEC_converterYUV422toRGB565"], "why": "Target lumaSkip r0, chromaSkip r3, output r6, tileRow r7, redOffset r8, red r9. Order those surviving locals before texture, with target RGB guard.", "sha256": "b991a36e4dca63492de15d548daa2cf15a2dfd1fc4b85b9f499590951103607d", "instructions": {"TMCJPEGDEC_converterYUV422toRGB565": {"counts": [136, 136], "diffs": 56}}} + +TRIAL {"label": "rgb422-pixel-value", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV422toRGB565": 96.47059}, "exact": 8, "drops": ["TMCJPEGDEC_converterYUV422toRGB565"], "why": "Name each consumed luminance separately inside each pixel block to avoid in-place blue splitting at the second pixel.", "sha256": "90f0f7166809afe4ddc6bfddbc48bd38f02e54bb8c933141cddad78597132d13", "instructions": {"TMCJPEGDEC_converterYUV422toRGB565": {"counts": [136, 136], "diffs": 32}}} + +Private debugger performance trial: cache read-only inferior memory pages while the compiler is stopped, clearing on every GDB continue event. All original breakpoints and trace events remain enabled. The cached driver is used only after graph, priority, coalescing and whole-object identity comparison with the original full RGBA444 capture. + +TRIAL {"label": "rgb422-blocks-red-green-blue", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV422toRGB565": 96.36029}, "exact": 8, "drops": ["TMCJPEGDEC_converterYUV422toRGB565"], "why": "Replace optimizer-created second-pixel split values with ordinary separate RGB block locals; lumaSkip leads the outer declarations.", "sha256": "79066578d953162a585b4dd410250ffb189c8b022ba2b2dce341a3deb85c6f85", "instructions": {"TMCJPEGDEC_converterYUV422toRGB565": {"counts": [136, 136], "diffs": 69}}} + +TRIAL {"label": "rgb422-blocks-green-red-blue", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV422toRGB565": 93.93382}, "exact": 8, "drops": ["TMCJPEGDEC_converterYUV422toRGB565"], "why": "Replace optimizer-created second-pixel split values with ordinary separate RGB block locals; lumaSkip leads the outer declarations.", "sha256": "d9407fb2e2a4c56c49d2eaa02d6a292e674701833901b0aea1b3fbd7874b63e8", "instructions": {"TMCJPEGDEC_converterYUV422toRGB565": {"counts": [136, 136], "diffs": 82}}} + +TRIAL {"label": "rgb422-blocks-blue-green-red", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV422toRGB565": 96.286766}, "exact": 8, "drops": ["TMCJPEGDEC_converterYUV422toRGB565"], "why": "Replace optimizer-created second-pixel split values with ordinary separate RGB block locals; lumaSkip leads the outer declarations.", "sha256": "7326a0de8044c3512842c421d5441632b16b3ed627f145bd153653b28b4f026d", "instructions": {"TMCJPEGDEC_converterYUV422toRGB565": {"counts": [136, 136], "diffs": 71}}} + +TRIAL {"label": "rgba444-red-alpha-high", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV444toRGBA8": 78.453606}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV444toRGBA8"], "why": "Target tile sum r23 overlaps the alpha high part r22, but not final packed alpha r23. Test a real named alpha stage to reverse the interference coloring dependency.", "sha256": "53a6ebf52c6329a0cecc0bfe336bbb4821261675a8e5c4e42b3297b6e455f008", "instructions": {"TMCJPEGDEC_converterYUV444toRGBA8": {"counts": [97, 97], "diffs": 77}}} + +TRIAL {"label": "rgba444-red-byte", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV444toRGBA8": 78.453606}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV444toRGBA8"], "why": "Target tile sum r23 overlaps the alpha high part r22, but not final packed alpha r23. Test a real named alpha stage to reverse the interference coloring dependency.", "sha256": "1cc0cccd2bca8ec1518d66eeab7f104efb80bfffaa0d0df21109b68ac2fc9487", "instructions": {"TMCJPEGDEC_converterYUV444toRGBA8": {"counts": [97, 97], "diffs": 77}}} + +TRIAL {"label": "rgba444-alpha-local", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV444toRGBA8": 92.37113}, "exact": 2, "drops": [], "why": "Target tile sum r23 overlaps the alpha high part r22, but not final packed alpha r23. Test a real named alpha stage to reverse the interference coloring dependency.", "sha256": "69a58b56bd73e1e4524c0089faee1850c4618f9cbf06f86a750a6e5c4885a0ca", "instructions": {"TMCJPEGDEC_converterYUV444toRGBA8": {"counts": [97, 97], "diffs": 25}}} + +TRIAL {"label": "rgba444-red-final", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV444toRGBA8": 80.13402}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV444toRGBA8"], "why": "Target tile sum r23 overlaps the alpha high part r22, but not final packed alpha r23. Test a real named alpha stage to reverse the interference coloring dependency.", "sha256": "cd3e5672a608a100ae1fab160c8367312abe7931b38865a7c1d2011776bc5476", "instructions": {"TMCJPEGDEC_converterYUV444toRGBA8": {"counts": [97, 97], "diffs": 77}}} + +TRIAL {"label": "rgba444-value-alpha-high", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV444toRGBA8": 92.37113}, "exact": 2, "drops": [], "why": "Target tile sum r23 overlaps the alpha high part r22, but not final packed alpha r23. Test a real named alpha stage to reverse the interference coloring dependency.", "sha256": "565a6cd502b49a4e0358d881ffcc8a1cece7ceb4e62f0037a6e53e28a99f284b", "instructions": {"TMCJPEGDEC_converterYUV444toRGBA8": {"counts": [97, 97], "diffs": 25}}} + +TRIAL {"label": "es-outer-target-priority", "unit": "es", "scores": {"DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap": 99.35412}, "exact": 30, "drops": [], "why": "Actual dump root virtual order is title pair, i, ticketScratch, ret, titleIds, heap. Target wants scratch, titleIds, ret, i after title pair. Name the index before status/title storage and declare scratch last.", "sha256": "867c75c184dab2e9fe3f78788dec422357ccd28b663507e3fdba9393ef9d3601", "instructions": {"DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap": {"counts": [449, 449], "diffs": 57}}} + +TRIAL {"label": "es-outer-title-last", "unit": "es", "scores": {"DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap": 99.18708}, "exact": 30, "drops": [], "why": "Compare titleIds versus ticketScratch root numbering while preserving all init and call order.", "sha256": "c8544df9afa10b3ca54b91e210ffd69055fff5697a90e655bd9381d6c91db268", "instructions": {"DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap": {"counts": [449, 449], "diffs": 71}}} + +TRIAL {"label": "es-outer-target-valid-first", "unit": "es", "scores": {"DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap": 99.2539}, "exact": 30, "drops": [], "why": "Target j r16 and valid r17 are the inverse of baseline; declare valid before j inside the real validation scope.", "sha256": "46bdff996b6c16c2a0ddd7c7c1b582fc4202394925dd7992de6656f839480dc0", "instructions": {"DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap": {"counts": [449, 449], "diffs": 64}}} + +Cached debugger driver validated against original full RGBA444 capture: identical whole object; identical priorities, event sequence and graph node fields (virtual, physical, representative, degree, cost, flags, name, neighbors) for CR and GPR. Future private captures use this stopped-state memory cache, cleared on every continue. No trace breakpoint was removed. + +TRIAL {"label": "rgb411edge-normalize-edge-locals", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV411toRGB565edge": 95.169815}, "exact": 8, "drops": ["TMCJPEGDEC_converterYUV411toRGB565edge"], "why": "Target persistent roles and operations match the exact 422 edge converter with 4:1 chroma sampling. Use the same ordinary declaration scope, RGB guard and associated packing; no flags or layout changes.", "sha256": "b1b4431de39449eede5e94ffa28936cdf89b67f08ef3d2d148600e1493e52522", "instructions": {"TMCJPEGDEC_converterYUV411toRGB565edge": {"counts": [106, 106], "diffs": 57}}} + +TRIAL {"label": "rgba422edge-named-coordinates", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "Baseline synthetic column&3 is the priority head r59->r0 (degree35), displacing lumaSkip to r8. Name true shared coordinates and place lumaSkip before them; target lumaSkip r0, columnInTile r8.", "sha256": "98e04aadd536511661dddca20f7c5a455bbb64d981f10ef977e53725e9242205", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +Cached ESMisc trace initially missed mangled function names: the driver calls the compiler mangler while stopped, which does not trigger the GDB continue event. Clear the read cache after that pre-existing function call too. This failed capture is discarded; validate the corrected cache against the original complete ESMisc baseline before using its graph. + +TRIAL {"label": "es-f13-register-cycle", "unit": "es", "scores": {"DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap": 99.54343}, "exact": 30, "drops": [], "why": "Recheck preserved f13 source 96b1bc17: ordinary validation/index initialization and caller declarations reduce the problem to the documented r31/r30/r20/r19 cycle. Basis for new allocator-driven trials.", "sha256": "a19a18a94e24da0766eb64ebb4fa9b7fd71028d5f5fa38388e1a7df5d9331346", "instructions": {"DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap": {"counts": [449, 449], "diffs": 41}}} + +TRIAL {"label": "rgba444-alpha-folded", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV444toRGBA8": 92.37113}, "exact": 2, "drops": [], "why": "Target alpha high stage needs a separate color from the final packed value, while tileColumn shares only the final color. Change the arithmetic/type boundary of the actual alpha packing expression.", "sha256": "f75d6ed5f5dde8460d0d58062399f977ba6d5520635680c2a5017b1dba75bb50", "instructions": {"TMCJPEGDEC_converterYUV444toRGBA8": {"counts": [97, 97], "diffs": 25}}} + +TRIAL {"label": "rgba444-alpha-low-first", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV444toRGBA8": 92.37113}, "exact": 2, "drops": [], "why": "Target alpha high stage needs a separate color from the final packed value, while tileColumn shares only the final color. Change the arithmetic/type boundary of the actual alpha packing expression.", "sha256": "e903f39c9190e2128339d44a8489f6f179b6978dcf847d06b701ae7e2ed02a8d", "instructions": {"TMCJPEGDEC_converterYUV444toRGBA8": {"counts": [97, 97], "diffs": 25}}} + +TRIAL {"label": "rgba444-alpha-unsigned", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV444toRGBA8": 92.37113}, "exact": 2, "drops": [], "why": "Target alpha high stage needs a separate color from the final packed value, while tileColumn shares only the final color. Change the arithmetic/type boundary of the actual alpha packing expression.", "sha256": "7aa3c6e76049a6635a46b355a6c0b9ef8d2c5172fa90059f9262b4a14907549a", "instructions": {"TMCJPEGDEC_converterYUV444toRGBA8": {"counts": [97, 97], "diffs": 25}}} + +TRIAL {"label": "rgba444-alpha-short", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV444toRGBA8": 92.37113}, "exact": 2, "drops": [], "why": "Target alpha high stage needs a separate color from the final packed value, while tileColumn shares only the final color. Change the arithmetic/type boundary of the actual alpha packing expression.", "sha256": "e9679dc8480cc15a696cfe82b7deb15db088f879862d75e743cf2d7fa4607492", "instructions": {"TMCJPEGDEC_converterYUV444toRGBA8": {"counts": [97, 97], "diffs": 25}}} + +TRIAL {"label": "rgba422edge-alpha-folded", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "Target alpha high stage needs a separate color from the final packed value, while tileColumn shares only the final color. Change the arithmetic/type boundary of the actual alpha packing expression.", "sha256": "008a9f0efb022dd8710dd43cd5093ae2cd5046d6cb85bcbf54c03e6227828705", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "rgba422edge-alpha-low-first", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "Target alpha high stage needs a separate color from the final packed value, while tileColumn shares only the final color. Change the arithmetic/type boundary of the actual alpha packing expression.", "sha256": "8c3a41bd336ccb122b3dde3b5995fb3f827c9280e417bcb8f170d0615995c653", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "rgba422edge-alpha-unsigned", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "Target alpha high stage needs a separate color from the final packed value, while tileColumn shares only the final color. Change the arithmetic/type boundary of the actual alpha packing expression.", "sha256": "b3b30e9abbb057949114cac646e43d7ea04fb133662b457443f334ba8dbe147a", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "rgba422edge-alpha-short", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "Target alpha high stage needs a separate color from the final packed value, while tileColumn shares only the final color. Change the arithmetic/type boundary of the actual alpha packing expression.", "sha256": "b3dd8d97fb3fcdb2702c2c45ecdeed8598f23dd1cd318a7e9a206e679ea6c6da", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +TRIAL {"label": "rgb411edge-named-column", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV411toRGB565edge": 100.0}, "exact": 9, "drops": [], "why": "411 edge reuses column&3 in its chroma condition and store. That synthetic head displaced lumaSkip, unlike exact 422 edge. Give the real coordinate a local after tileRow and assign all live locals in target order.", "sha256": "1b303cf14c4f3c145ba0b95ceba6284c66cbb9a3e3f02d08289326bdbee34b02", "instructions": {"TMCJPEGDEC_converterYUV411toRGB565edge": {"counts": [106, 106], "diffs": 0}}} + +TRIAL {"label": "rgb411edge-blue-red-guard", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV411toRGB565edge": 99.57547}, "exact": 8, "drops": [], "why": "Keep explicit column&3 and target live local ordering; target wants red/green/blue persistent roles r24/r23/r22 with blue|red|green guard evaluation.", "sha256": "ff6f80c7ac5dcee38f2af39550d984a02a37c48c40536299a3211eda57c49869", "instructions": {"TMCJPEGDEC_converterYUV411toRGB565edge": {"counts": [106, 106], "diffs": 5}}} + +TRIAL {"label": "rgb411edge-rgb-values", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV411toRGB565edge": 100.0}, "exact": 9, "drops": [], "why": "Keep explicit column&3 and target live local ordering; target wants red/green/blue persistent roles r24/r23/r22 with blue|red|green guard evaluation.", "sha256": "247675531326123801caa4ccc4cf4675f22abf242d24e975698e072709809b15", "instructions": {"TMCJPEGDEC_converterYUV411toRGB565edge": {"counts": [106, 106], "diffs": 0}}} + +TRIAL {"label": "rgb420-named-second-green", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV420toRGB565": 95.46099}, "exact": 8, "drops": [], "why": "Target second green reuses the expired redOffset register (422 r8; 420 r9). Baseline SSA split gives second green a synthetic first-priority node. Name that actual second-pixel channel beside the offset, and name the 420 chroma rewind count.", "sha256": "a31fd6ab1232a271ef35eed3bf66a1e8650afdc7d18c995f6391ed7789662f0d", "instructions": {"TMCJPEGDEC_converterYUV420toRGB565": {"counts": [141, 141], "diffs": 58}}} + +TRIAL {"label": "rgb420-rgb-guard", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV420toRGB565": 95.03546}, "exact": 8, "drops": ["TMCJPEGDEC_converterYUV420toRGB565"], "why": "Target second green reuses the expired redOffset register (422 r8; 420 r9). Baseline SSA split gives second green a synthetic first-priority node. Name that actual second-pixel channel beside the offset, and name the 420 chroma rewind count.", "sha256": "e38ccb6400e448a532e6488c0b4f7946f1b0d097964df54c1e5a0b1d8fee9c29", "instructions": {"TMCJPEGDEC_converterYUV420toRGB565": {"counts": [141, 141], "diffs": 61}}} + +TRIAL {"label": "rgb420-second-green-late", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV420toRGB565": 95.46099}, "exact": 8, "drops": [], "why": "Target second green reuses the expired redOffset register (422 r8; 420 r9). Baseline SSA split gives second green a synthetic first-priority node. Name that actual second-pixel channel beside the offset, and name the 420 chroma rewind count.", "sha256": "244af60743f8c758c6700691bd3ea249d2257d4c7d6275454d659fffc8f5fd7f", "instructions": {"TMCJPEGDEC_converterYUV420toRGB565": {"counts": [141, 141], "diffs": 58}}} + +TRIAL {"label": "rgb422-named-second-green", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV422toRGB565": 94.08088}, "exact": 8, "drops": ["TMCJPEGDEC_converterYUV422toRGB565"], "why": "Target second green reuses the expired redOffset register (422 r8; 420 r9). Baseline SSA split gives second green a synthetic first-priority node. Name that actual second-pixel channel beside the offset, and name the 420 chroma rewind count.", "sha256": "cee989a0e88bc7035a7a9b1e4e7698bc7e81f8924e979aeadafb5d838848a00b", "instructions": {"TMCJPEGDEC_converterYUV422toRGB565": {"counts": [136, 136], "diffs": 38}}} + +TRIAL {"label": "rgb422-rgb-guard", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV422toRGB565": 98.52941}, "exact": 8, "drops": [], "why": "Target second green reuses the expired redOffset register (422 r8; 420 r9). Baseline SSA split gives second green a synthetic first-priority node. Name that actual second-pixel channel beside the offset, and name the 420 chroma rewind count.", "sha256": "cd53ffebb236398f1847e2cbc675d3bce3ba2c519c337d78fd40d59d88a72c3a", "instructions": {"TMCJPEGDEC_converterYUV422toRGB565": {"counts": [136, 136], "diffs": 27}}} + +TRIAL {"label": "rgb422-second-green-late", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV422toRGB565": 94.08088}, "exact": 8, "drops": ["TMCJPEGDEC_converterYUV422toRGB565"], "why": "Target second green reuses the expired redOffset register (422 r8; 420 r9). Baseline SSA split gives second green a synthetic first-priority node. Name that actual second-pixel channel beside the offset, and name the 420 chroma rewind count.", "sha256": "c348d8a86927d25b3d7f615e093e58b9d7d9cd0e8c154603e59ce31b5404fed6", "instructions": {"TMCJPEGDEC_converterYUV422toRGB565": {"counts": [136, 136], "diffs": 38}}} + +TRIAL {"label": "rgba411edge-named-column", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV411toRGBA8edge": 90.29464}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV411toRGBA8edge"], "why": "The 411 edge target holds lumaSkip r0 and shared column&3 r9; baseline synthetic coordinate takes r0. Use the same successful explicit-coordinate source shape as RGB411 edge.", "sha256": "7a7828e4705e776aa814232650cc5484834dd74b0c7e390d492977eec6e77643", "instructions": {"TMCJPEGDEC_converterYUV411toRGBA8edge": {"counts": [112, 112], "diffs": 58}}} + +TRIAL {"label": "rgba411edge-skip-priority", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV411toRGBA8edge": 86.84821}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV411toRGBA8edge"], "why": "Target chromaSkip r6 must remain live over both plane stores; move its declaration next to lumaSkip before output and the named coordinate.", "sha256": "e8769c4af2c133ee8ff4fb000350ca7f4b9061de23d0eed43fbde45c501a9998", "instructions": {"TMCJPEGDEC_converterYUV411toRGBA8edge": {"counts": [112, 112], "diffs": 74}}} + +TRIAL {"label": "rgb422-distinct-second-value", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV422toRGB565": 98.52941}, "exact": 8, "drops": [], "why": "After naming secondGreen, persistent target registers and the first pixel agree. The remaining second pixel overwrites red r9 with luminance; separate the true second-pixel value or channel so its source identity survives SSA splitting.", "sha256": "8b5b4f862b63a19878ec7e7421c30baf4b01d49b212cc8a38ce78683b91a2bac", "instructions": {"TMCJPEGDEC_converterYUV422toRGB565": {"counts": [136, 136], "diffs": 27}}} + +TRIAL {"label": "rgb422-distinct-second-red", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV422toRGB565": 99.742645}, "exact": 8, "drops": [], "why": "After naming secondGreen, persistent target registers and the first pixel agree. The remaining second pixel overwrites red r9 with luminance; separate the true second-pixel value or channel so its source identity survives SSA splitting.", "sha256": "4b4e92badffc575e5d241c4342bd7591d9aa73391a6120257de45685cd7e98af", "instructions": {"TMCJPEGDEC_converterYUV422toRGB565": {"counts": [136, 136], "diffs": 7}}} + +TRIAL {"label": "rgb422-distinct-second-blue", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV422toRGB565": 98.52941}, "exact": 8, "drops": [], "why": "After naming secondGreen, persistent target registers and the first pixel agree. The remaining second pixel overwrites red r9 with luminance; separate the true second-pixel value or channel so its source identity survives SSA splitting.", "sha256": "8af1533cb613d160107fc321638a398255113a74666f9a249fb139261e9d7740", "instructions": {"TMCJPEGDEC_converterYUV422toRGB565": {"counts": [136, 136], "diffs": 27}}} + +TRIAL {"label": "rgb422-distinct-second-value-red", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV422toRGB565": 99.742645}, "exact": 8, "drops": [], "why": "After naming secondGreen, persistent target registers and the first pixel agree. The remaining second pixel overwrites red r9 with luminance; separate the true second-pixel value or channel so its source identity survives SSA splitting.", "sha256": "dff084643eef70764259e104fd23f37729d11862a5d7a54aaf61a89956533518", "instructions": {"TMCJPEGDEC_converterYUV422toRGB565": {"counts": [136, 136], "diffs": 7}}} + +TRIAL {"label": "rgb422-state-before-width", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV422toRGB565": 100.0}, "exact": 9, "drops": [], "why": "Pixel loops now have zero differences. Only state pointer r10 versus target r9 and width r9 versus target r20 remain during initialization. Reorder these ordinary short-lived declarations without moving any computation.", "sha256": "f32af85fa6ea6f087cf5be748bba88536ce64d485820995bbec413e9eaceb17b", "instructions": {"TMCJPEGDEC_converterYUV422toRGB565": {"counts": [136, 136], "diffs": 0}}} + +TRIAL {"label": "rgb422-state-before-texture", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV422toRGB565": 100.0}, "exact": 9, "drops": [], "why": "Pixel loops now have zero differences. Only state pointer r10 versus target r9 and width r9 versus target r20 remain during initialization. Reorder these ordinary short-lived declarations without moving any computation.", "sha256": "3002e0f9cfd7c58387eda1ccd0fa3742f991891490a6ba4875c2360f6b2c0233", "instructions": {"TMCJPEGDEC_converterYUV422toRGB565": {"counts": [136, 136], "diffs": 0}}} + +TRIAL {"label": "rgb422-width-before-value", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV422toRGB565": 99.742645}, "exact": 8, "drops": [], "why": "Pixel loops now have zero differences. Only state pointer r10 versus target r9 and width r9 versus target r20 remain during initialization. Reorder these ordinary short-lived declarations without moving any computation.", "sha256": "5791383d191044b78cce1705ab4730e131c9a6bc239ad6d44ca46a8e0e7832e7", "instructions": {"TMCJPEGDEC_converterYUV422toRGB565": {"counts": [136, 136], "diffs": 7}}} + +TRIAL {"label": "rgb422-width-after-state", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV422toRGB565": 100.0}, "exact": 9, "drops": [], "why": "Pixel loops now have zero differences. Only state pointer r10 versus target r9 and width r9 versus target r20 remain during initialization. Reorder these ordinary short-lived declarations without moving any computation.", "sha256": "2ed801845e600285b461869f9fa962f1bb910ec9b0dfa1828d6157bce4b9c29d", "instructions": {"TMCJPEGDEC_converterYUV422toRGB565": {"counts": [136, 136], "diffs": 0}}} + +TRIAL {"label": "rgb420-two-pixel-locals", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV420toRGB565": 100.0}, "exact": 10, "drops": [], "why": "Propagate the exact 422 two-pixel source shape to 420, with a named chroma rewind width. Target has the same channel schedule and one extra persistent rewind register.", "sha256": "8200988110bf7d96c993555320611445d65f89075cf49f5ff53c8b83751daba7", "instructions": {"TMCJPEGDEC_converterYUV420toRGB565": {"counts": [141, 141], "diffs": 0}}} + +TRIAL {"label": "rgba444-tile-before-clamp", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV444toRGBA8": 78.4433}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV444toRGBA8"], "why": "Target tileColumn must color before alpha intermediate, but after the luminance dies. Extend only this real coordinate lifetime across clamp calculation to test whether the optimizer schedules it back while keeping interference priority.", "sha256": "a43033a2665af54bb7d037d9ad49b736ac357fa458ddbaa03918995fa4204f05", "instructions": {"TMCJPEGDEC_converterYUV444toRGBA8": {"counts": [97, 97], "diffs": 84}}} + +TRIAL {"label": "rgba444-tile-before-luma", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV444toRGBA8": 77.95876}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV444toRGBA8"], "why": "Target tileColumn must color before alpha intermediate, but after the luminance dies. Extend only this real coordinate lifetime across clamp calculation to test whether the optimizer schedules it back while keeping interference priority.", "sha256": "a129e8856bce45f4c0531a1b1ccee2bac42206de2da3bb157bb7688346454a02", "instructions": {"TMCJPEGDEC_converterYUV444toRGBA8": {"counts": [97, 97], "diffs": 70}}} + +TRIAL {"label": "rgba444-unsigned-tile", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV444toRGBA8": 92.37113}, "exact": 2, "drops": [], "why": "Retain signed column shift; represent the resulting texture tile index as unsigned, testing whether conversion creates the target non-coalesced tile/alpha boundary.", "sha256": "7f98367a69e151d9b957a5af3334d55e49ae519e5b43f9de72a9b01b41fb8b9d", "instructions": {"TMCJPEGDEC_converterYUV444toRGBA8": {"counts": [97, 97], "diffs": 25}}} + +TRIAL {"label": "rgba422edge-tile-before-clamp", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 77.92921}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV422toRGBA8edge"], "why": "Target tileColumn must color before alpha intermediate, but after the luminance dies. Extend only this real coordinate lifetime across clamp calculation to test whether the optimizer schedules it back while keeping interference priority.", "sha256": "5f978e5d4b91fc0ccefad5e52db6831b2b8cb44bf679443257562feb5dececd7", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 87}}} + +TRIAL {"label": "rgba422edge-tile-before-luma", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 77.92921}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV422toRGBA8edge"], "why": "Target tileColumn must color before alpha intermediate, but after the luminance dies. Extend only this real coordinate lifetime across clamp calculation to test whether the optimizer schedules it back while keeping interference priority.", "sha256": "c85f02192a5573125cd0c58e8669ade1688fa250b880033cc389296d51bfbf77", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 87}}} + +TRIAL {"label": "rgba422edge-unsigned-tile", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV422toRGBA8edge": 93.89381}, "exact": 2, "drops": [], "why": "Retain signed column shift; represent the resulting texture tile index as unsigned, testing whether conversion creates the target non-coalesced tile/alpha boundary.", "sha256": "575f627a303141b63f800a0ce3f16d831cc8773c8de827e6aeb65928e6e5dff4", "instructions": {"TMCJPEGDEC_converterYUV422toRGBA8edge": {"counts": [113, 113], "diffs": 17}}} + +## Allocation findings confirmed from complete baseline traces + +ESMisc: the normal baseline and original full debugger output are byte-identical at `build/rx13/trials/es-baseline/trace-ascii-case3`. The successful coloring is GPR pass 2; pass 1 spills and is not the final mapping. At pass 2 the allocator selects low-cost constant v129 (degree 30, budget 29) as a spill candidate. Simplification then visits v39,40,41,42,43,44,46,55,72,130,176 before wrapping to v32..38. Coloring reverses that order. The title halves v38/v37 therefore get r31/r30 (degrees 62/61), whereas saveData v46 and deleteSaveData v44 get r20/r19 (degrees 31/31). Target title high/low are r20/r19, saveData r30, deletion flag r31. Call-register coalesces are rejected for interference; load temporaries merge with the title pair in pass 1. This is a deterministic scan/wrap ordering difference, not a random allocator decision. Caller index/status/storage declarations fix the separate scratch/titleIds/i cycle; preserved f13 initialization fixes the validation and ticket-index pairs. Its remaining 41 diffs are the four-register cycle above. Read earlier s1..s8 history and f13 commit 96b1bc17; do not repeat its 68 discarded helper/layout trials. No fuzzy-only ESMisc edit is retained. + +The cached C++ trace was discarded after its full 240-second budget expired. ESMisc confirmation uses the original full driver on the private debugger port with a longer process timeout. C captures retain the verified cache and all original trace breakpoints. + +RGBA8 setters: target keeps convBuf in r4 and state in r5. Initial PCode has both values, but before-regalloc PCode has folded every convBuf+offset into work+constant; buffer v47 has no interference edges or remaining uses. State v46 (degree 82) consequently gets first available r4. A register permutation cannot restore the missing 170th instruction. Scalar helper, integer address, and first-row base trials either preserve this fold or worsen the setter. Production flags and layout stay unchanged. + +RGBA411: the first persistent pointers already occupy their target r6/r7/r3 and texture r0. Long-lived channel/row values are allocated next in source declaration order; baseline blueOffset/greenOffset/tileRow/lumaSkip/chromaSkip/output/redOffset occupy r12/r31/r30/r29/r28/r27/r26. The target puts row skips in r24/r23 and output/tileRow in r21/r20. Degrees 99..144 keep these nodes out of early simplification; pixel SSA splits and packing temporaries supply the competing values. Channel, alpha-packing and tile helpers did not produce an exact schedule. Their full traces and three compiled source families are preserved. + +RGBA411edge: baseline synthetic shared-column and packed-channel values v60/v59/v58 color first into r0/r3/r6; output/tileRow/lumaSkip follow in r7/r8/r9. Target uses lumaSkip r0, chromaSkip r6 and column&3 r9. Naming the shared column alone fixes neither packed-channel priority nor chromaSkip; the two attempted source orders regress and are rejected. + +RGBA422: baseline second-pixel SSA values v64/v58 each take r0 on non-overlapping lifetimes (degree 32), pushing lumaSkip to r8. Target needs row advance in r0. Real channel and pixel helpers preserve the split or change the schedule; all are rejected. No carrier object is used. + +RGBA422edge: synthetic column&3 v59 (degree 35) takes r0 before chromaSkip/output/tileRow, leaving lumaSkip r8. Explicit columnInTile plus lumaSkip-first declarations produces target persistent roles r0/r3/r6/r7/r8. It leaves 17 instruction differences: signed Cb conversion, tile sum, and alpha intermediates. Target tile sum r19 must precede alpha intermediate r18 in coloring; source colors the alpha temporary first and gives the tile sum r18. Alpha arithmetic spellings do not alter this graph. + +RGBA420: baseline shared rewind width v67 (degree 87) gets r0; second-pixel values v64/v58 get r3. ChromaSkip/lumaSkip/output/tileRow consequently start at r6/r7/r8/r9. Target persistent ordering differs before the two color conversions. Scalar channel and tile helpers do not remove the temporary priority heads. + +RGBA420edge: baseline v59 is the loop-invariant chroma rewind count (degree 60), and v58/v57 are pixel temporaries; they claim r0/r6/r7 before luminance r8 and Cb r9. Target has lumaSkip r0, chromaSkip r6, rewind count r7, output r8, tileRow r9, shared column&3 r10, texture r11, luminance r12, Cb/Cr r31/r30. The named-width fix that succeeds in RGB565 also requires independent RGBA plane-packing lifetime changes here. + +RGBA211 and 211edge: shared column&3 v55 has degree 32 and gets r0; target wants row skip r0 and columnInTile r7. In the edge function lumaSkip is particularly late (v35, degree 58, r25). The target wants the same core persistent roles as 444, plus width r31 for alternate-row rewind. Existing channel/alpha/tile helper trials do not change the synthetic coordinate head. + +RGBA444 and 444edge: the shared column coordinate v55 (degree 31) gets r0. Naming it and moving rowSkip first fixes the core roles in the non-edge trial (rowSkip/output/tileRow/columnInTile = r0/r3/r6/r7), reducing 46 to 25 differences. The late tile sum has degree 24 and simplifies before the alpha-packing temporaries, so reverse coloring gives it r22 rather than target r23. Target uses r22 for alpha mask/addis and reuses r23 only for the final alpha-red halfword. Value reuse, scalar store helpers, explicit alpha stages and equivalent constant spellings fail to change that lifetime relation cleanly. The edge baseline additionally keeps texture too late at r28 instead of target r8. Full raw priorities and graph edges remain in the trace directories. + +ESMisc f13 confirmation: original full mwdbg driver completed, whole object equals the normal compiler snapshot. Final GPR pass 2 has zero rewrite mismatches. Caller storage/index and ticket/validation locals now take target colors; the title pair still heads coloring and the save buffer/deletion flag remain in r20/r19. This confirms the residual four-register cycle survives the better source, not merely the original baseline. Trace: build/rx13/trials/es-f13-register-cycle/trace. + +RGB411edge EXACT confirmation: 100.0%, 106/106, diffs 0. Whole trace object equals the normal snapshot; 185 rewritten operands, zero mismatches. Persistent priority is lumaSkip v59 ->r0 (degree53), chromaSkip58->r3 (52), output57->r6 (51), tileRow56->r7 (51), columnInTile55->r8 (47), texture54->r9, luminance53->r10, cb52->r11, cr51->r12, column50->r31, xEnd49->r30, yEnd48->r29, tileWidth47->r28, redOffset46->r27, greenOffset45->r26, blueOffset44->r25, red43->r24, green42->r23, blue41->r22. Explicit columnInTile removes the synthetic head that otherwise takes r0. The RGB guard and packing association from the exact 422 edge sibling preserve the required channel temporary order. No carrier or compiler flag change. Trace: build/rx13/trials/rgb411edge-named-column/trace. + +TRIAL {"label": "rgba211-target-live-coordinates", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV211toRGBA8": 92.88461}, "exact": 2, "drops": [], "why": "mwdbg v55 is the shared column&3 priority head at r0. Explicit coordinates and ordinary live-local order ask for target row skip/output/tileRow/columnInTile r0/r3/r6/r7. This is the proven source shape from RGB edge converters.", "sha256": "db21ff96fc569fbfdadf37f484e7fe8134ea3829e6d3457a281e0d6135914b5a", "instructions": {"TMCJPEGDEC_converterYUV211toRGBA8": {"counts": [104, 104], "diffs": 25}}} + +TRIAL {"label": "rgba211edge-target-live-coordinates", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV211toRGBA8edge": 92.82609}, "exact": 2, "drops": [], "why": "mwdbg v55 is the shared column&3 priority head at r0. Explicit coordinates and ordinary live-local order ask for target row skip/output/tileRow/columnInTile r0/r3/r6/r7. This is the proven source shape from RGB edge converters.", "sha256": "89cecfcf4f53f7c25eec1e91366bf4821672a9fdd30fea2f03ed8ef402291dc9", "instructions": {"TMCJPEGDEC_converterYUV211toRGBA8edge": {"counts": [115, 115], "diffs": 31}}} + +TRIAL {"label": "rgba444edge-target-live-coordinates", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV444toRGBA8edge": 93.318184}, "exact": 2, "drops": [], "why": "mwdbg v55 is the shared column&3 priority head at r0. Explicit coordinates and ordinary live-local order ask for target row skip/output/tileRow/columnInTile r0/r3/r6/r7. This is the proven source shape from RGB edge converters.", "sha256": "05fb38b68852cf0018df81783d28c0a730e9b54fc6faddb07f790e4b24cef7a4", "instructions": {"TMCJPEGDEC_converterYUV444toRGBA8edge": {"counts": [110, 110], "diffs": 23}}} + +TRIAL {"label": "rgba444-tile-helper-reuse-column", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV444toRGBA8": 82.52577}, "exact": 2, "drops": ["TMCJPEGDEC_converterYUV444toRGBA8"], "why": "Target coalesces the shifted tile column into the final row sum r23. A scalar coordinate helper with a reused actual parameter tests a natural inline boundary for that coalescing, without carrier storage.", "sha256": "3cb610040e7054784da7a73ae81bdfe58b2e333960f145cc3be15c3d1a34d223", "instructions": {"TMCJPEGDEC_converterYUV444toRGBA8": {"counts": [97, 97], "diffs": 77}}} + +TRIAL {"label": "rgba444-tile-helper-shift-then-add", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV444toRGBA8": 92.37113}, "exact": 2, "drops": [], "why": "Target coalesces the shifted tile column into the final row sum r23. A scalar coordinate helper with a reused actual parameter tests a natural inline boundary for that coalescing, without carrier storage.", "sha256": "96f22ae254932d296a7af49b8a274931cea2fd5fc61888390b6db502aaa440b9", "instructions": {"TMCJPEGDEC_converterYUV444toRGBA8": {"counts": [97, 97], "diffs": 25}}} + +TRIAL {"label": "rgba444-tile-helper-reuse-row", "unit": "rgba", "scores": {"TMCJPEGDEC_converterYUV444toRGBA8": 92.31959}, "exact": 2, "drops": [], "why": "Target coalesces the shifted tile column into the final row sum r23. A scalar coordinate helper with a reused actual parameter tests a natural inline boundary for that coalescing, without carrier storage.", "sha256": "1a9868ba5a37ae64642fe22ea73d64c736b5f33a3fcc91bc5007f6ddf08f80e4", "instructions": {"TMCJPEGDEC_converterYUV444toRGBA8": {"counts": [97, 97], "diffs": 25}}} + +RGB422 EXACT confirmed: 100.0%, 136/136, diffs 0. Full trace object equals the normal snapshot; 248 rewritten operands, zero mismatches. Removing synthetic split values and naming actual secondGreen/secondRed makes the desired non-overlapping live ranges independently color alike: redOffset v55 and secondGreen v54 both r8 (degrees47/30, simplify degree7, available mask0x1f00); red v53 and secondRed v52 both r9 (degrees35/29, simplify degree8, mask0x1e00). They do not need artificial copies or a carrier. Moving state before width then colors state v38->r9 (simplify degree10) before width v37->r20 (degree15), resolving the final seven setup differences. Trace: build/rx13/trials/rgb422-state-before-width/trace. + +TRIAL {"label": "rgb411-named-tile-column", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV411toRGB565": 87.622116}, "exact": 10, "drops": ["TMCJPEGDEC_converterYUV411toRGB565"], "why": "Target has a loop-carried first pixel tile coordinate r6. Name that real shared value after row skips, preserving four-pixel sampling and ordinary RGB guard/packing shape proven in the two-pixel converters.", "sha256": "9e2bba625160c96ac7df945e15842ce6cf7de13100e5fdfda59e744f7fb13699", "instructions": {"TMCJPEGDEC_converterYUV411toRGB565": {"counts": [217, 217], "diffs": 126}}} + +TRIAL {"label": "rgb411-separate-red-green", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV411toRGB565": 89.39632}, "exact": 10, "drops": ["TMCJPEGDEC_converterYUV411toRGB565"], "why": "Target reuses r9/r10 for separate pixel channel lifetimes. As for exact RGB422, give each unrolled pixel its own actual channel identity to prevent compiler-created split nodes taking priority above row state.", "sha256": "4828cb19c8e2e906c22a17d719c9d94b7e3f070ea306c12b1038c0b9537295e2", "instructions": {"TMCJPEGDEC_converterYUV411toRGB565": {"counts": [217, 217], "diffs": 86}}} + +TRIAL {"label": "rgb411-separate-rgb", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV411toRGB565": 89.39632}, "exact": 10, "drops": ["TMCJPEGDEC_converterYUV411toRGB565"], "why": "Target reuses r9/r10 for separate pixel channel lifetimes. As for exact RGB422, give each unrolled pixel its own actual channel identity to prevent compiler-created split nodes taking priority above row state.", "sha256": "cf02ead821b9e7bc80c5b49e164dd22d05cd5958ec4f6890388589b8c50f7aa2", "instructions": {"TMCJPEGDEC_converterYUV411toRGB565": {"counts": [217, 217], "diffs": 86}}} + +RGB565 setter full trace independently confirms the same address-folding problem as RGBA8: buffer v47 has zero edges and no surviving register need, while state v46 is the first live priority node. Target wants a separately materialized convBuf base and one additional instruction. The complete trace is build/rx13/trials/rgb-baseline/trace-TMCJPEGDEC_set_converterRGB565. + +RGB420 EXACT confirmation: 100.0%, 141/141, diffs 0. The exact two-pixel RGB422 source shape carries unchanged except for 420 sampling dimensions and alternate-row rewind. A named chromaWidth occupies r6 after lumaSkip r0/chromaSkip r3; output/tileRow become r7/r8, redOffset and secondGreen share r9, first/second red share r10. The complete debugger object equals the normal snapshot; rewrite validation has zero mismatches. Trace: build/rx13/trials/rgb420-two-pixel-locals/trace. Both functions retain separate meaningful secondRed/secondGreen scalars and the same two luminance reads. + +TRIAL {"label": "rgb411-channel-lifetime-order", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV411toRGB565": 97.5576}, "exact": 10, "drops": [], "why": "Baseline dump shows v64..66 are later red channels taking r0 and v61..63 later green channels taking r6. Explicit locals remove these split heads. Target shares first red with later greens in r9, and first green with later reds in r10; order those non-overlapping scalar lifetimes together.", "sha256": "255eb4db6b10644b2b43adcdc934bdc1d5385b874c8906c5c488dd184ddd34e0", "instructions": {"TMCJPEGDEC_converterYUV411toRGB565": {"counts": [217, 217], "diffs": 17}}} + +TRIAL {"label": "rgb411-explicit-tile-advance", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV411toRGB565": 83.87558}, "exact": 10, "drops": ["TMCJPEGDEC_converterYUV411toRGB565"], "why": "The optimizer had replaced the named tile expression with its own high-numbered induction node. Express the actual four-pixel tile advance directly: initialize x>>2 each row and increment once per four pixels. Target assigns this loop-carried coordinate r6 after luma/chroma skips.", "sha256": "f6ef46f7b4950df5b63d202f29aface6ccfb1eed304f67c65f26b7e3e1868912", "instructions": {"TMCJPEGDEC_converterYUV411toRGB565": {"counts": [218, 217], "diffs": null}}} + +TRIAL {"label": "rgb411-row-stride-lifetime", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV411toRGB565": 94.668205}, "exact": 10, "drops": [], "why": "Only chromaSkip versus synthesized tile induction and setup order remain. Put real row stride calculation at the row boundary and let loop-invariant motion choose its source identity before coloring.", "sha256": "30979e3fd2db3a86ed70ec09b49fcf56fb27ae987c4fe943faf252ef52a3af6f", "instructions": {"TMCJPEGDEC_converterYUV411toRGB565": {"counts": [219, 217], "diffs": null}}} + +TRIAL {"label": "rgb411-shared-stride-expression", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV411toRGB565": 97.5576}, "exact": 10, "drops": [], "why": "Use the shared row stride directly at both chroma advances, asking CSE to create the chroma stride beside the synthesized tile induction rather than as a low-numbered local.", "sha256": "86fdd42b86a72b01fb813109fde0acf7c8ee3ef89d5511f054230cd769a4aa32", "instructions": {"TMCJPEGDEC_converterYUV411toRGB565": {"counts": [217, 217], "diffs": 16}}} + +TRIAL {"label": "rgb411-tile-loop-initializer", "unit": "rgb", "scores": {"TMCJPEGDEC_converterYUV411toRGB565": 83.866356}, "exact": 10, "drops": ["TMCJPEGDEC_converterYUV411toRGB565"], "why": "Keep the tile counter coupled to the actual column loop instead of precomputing it from x outside the loop. This tests whether the compiler avoids the extra outer-loop invariant copy from the prior explicit advance trial.", "sha256": "97870211aaa2803b8d98b98720f2d2bfb64ad3917ac5bede80a414d9ed157ffd", "instructions": {"TMCJPEGDEC_converterYUV411toRGB565": {"counts": [218, 217], "diffs": null}}} + +Source-search accounting: five complete 1200-second searches respected the shared 24-slot limiter: ESMisc seeds13/49/131 ran472/380/438 trials; RGBA444 seed13 ran1771 trials; RGB422 seed131 ran1877 trials. None improved its starting source. The additional RGBA444 seed49 remained at the global lock for over44 minutes, with an empty log and no output directory; stopped only that own zero-trial process before clean verification. The limiter was unchanged. No search result was applied. Initial relative-output launches failed before scoring because objdiff could not write a relative report path; the completed searches used absolute paths. + +RGB411 baseline full trace completed after retrying the 180-second timeout with a 600-second process budget. Whole debugger object equals the normal baseline. Synthetic tile induction v71 has degree120; it simplifies at remaining degree4, colors first, and receives available mask0x1fc8 ->r3 (r0 is excluded). Later red SSA nodes v64..66 then take r0, and later green nodes v61..63 take r6; lumaSkip/chromaSkip are displaced to r9/r10. Target needs skips r0/r3, tile induction r6, first red/green r9/r10 and later red/green r10/r9. + +RGB411 improved trace also reproduces its normal object exactly, with zero rewrite mismatches. Separate real pixel-channel locals remove the red/green synthetic priority heads, fixing the pixel color calculations. The remaining 17 differences at97.5576% are the synthesized tile induction/chromaSkip r3/r6 swap and related setup scheduling. Writing a literal tile loop counter introduces an unwanted invariant copy (218 instead of217 instructions), while moving skip calculations into the row adds two instructions. Shared stride spelling has16 diffs at the same97.5576%; no variant is exact, so the production RGB411 body remains unchanged. Full traces: build/rx13/trials/rgb-baseline/trace411-full and build/rx13/trials/rgb411-channel-lifetime-order/trace. + +Final origin refresh: HEAD 124c4df0, origin/main aced52f0; all three assigned sources on origin/main still equal the original HEAD versions. No merge, rebase or source substitution was performed. + +## Final retained result + +Only Texture_MCUtoRGB565.c and this log changed. Four exact functions are retained; every fuzzy-only source trial is confined to ignored build/rx13 snapshots. No configure, header, assembly, label, comment, linker or compiler-setting edit. All18 initially open symbols have at least three distinct compiled source shapes; counts below exclude the baseline. + +| Function | Before | Retained | Distinct compiled shapes | +|---|---:|---:|---:| +| TMCJPEGDEC_set_converterRGBA8 | 93.91765 | 93.91765 | 3 | +| TMCJPEGDEC_converterYUV411toRGBA8 | 82.70661 | 82.70661 | 3 | +| TMCJPEGDEC_converterYUV411toRGBA8edge | 94.28571 | 94.28571 | 5 | +| TMCJPEGDEC_converterYUV422toRGBA8 | 88.195946 | 88.195946 | 3 | +| TMCJPEGDEC_converterYUV422toRGBA8edge | 92.0354 | 92.0354 | 11 | +| TMCJPEGDEC_converterYUV420toRGBA8 | 90.973854 | 90.973854 | 3 | +| TMCJPEGDEC_converterYUV420toRGBA8edge | 87.5 | 87.5 | 3 | +| TMCJPEGDEC_converterYUV211toRGBA8 | 91.15385 | 91.15385 | 4 | +| TMCJPEGDEC_converterYUV211toRGBA8edge | 92.17391 | 92.17391 | 4 | +| TMCJPEGDEC_converterYUV444toRGBA8 | 90.670105 | 90.670105 | 26 | +| TMCJPEGDEC_converterYUV444toRGBA8edge | 88.90909 | 88.90909 | 4 | +| TMCJPEGDEC_set_converterRGB565 | 93.91765 | 93.91765 | 3 | +| TMCJPEGDEC_converterYUV411toRGB565 | 91.17512 | 91.17512 | 11 | +| TMCJPEGDEC_converterYUV411toRGB565edge | 95.42453 | 100.0 | 7 | +| TMCJPEGDEC_converterYUV422toRGB565 | 97.132355 | 100.0 | 19 | +| TMCJPEGDEC_converterYUV420toRGB565 | 95.42553 | 100.0 | 7 | +| TMCJPEGDEC_converterYUV420toRGB565edge | 97.850876 | 100.0 | 9 | +| DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap | 99.14254 | 99.14254 | 10 | + +Owned totals: instruction-exact functions39/57 ->43/57; matched code12712/23980 ->14700/23980 (+1988 bytes); matched data4416/4416 unchanged. RGBA8 stays2/13 and660/6596; RGB565 rises7/13 ->11/13 and2648/6184 ->4636/6184; ESMisc stays30/31 and9404/11200. JPEG units have no data sections. All owned units remain NonMatching/unlinked; this is a matching-round handoff, not complete decompilation or new linking. + +Source semantics review: chroma loads retain signed8-bit interpretation, luminance remains one zero-extended byte per pixel, all pointer increments and row rewinds preserve their values, and RGB565 fields occupy disjoint bits so the added arithmetic association is equivalent. RGB guard operand reordering has no side effects. secondRed/secondGreen are actual pixel channels; chromaWidth and columnInTile name existing repeated calculations. No dummy storage, carrier type or new uninitialized read was introduced. + +Verified 18 complete baseline traces against normal whole-object bytes and successful final GPR rewrite checks; all zero mismatches. Candidate traces for all four new matches and the improved RGB411/ESMisc investigation were separately confirmed. Raw captures remain under build/rx13. + +Final clean gate (no --quick): + +```text +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] pool: IDENTICAL +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] objdiff: code 660/6596 data None/None functions 2/13 fuzzy 90.7022 linked code 0 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] instruction-exact functions: 2/13 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] section .text size 6596 match 90.70224 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_set_converterRGBA8 93.91765 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV411toRGBA8 82.70661 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV411toRGBA8edge 94.28571 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV422toRGBA8 88.195946 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV422toRGBA8edge 92.0354 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV420toRGBA8 90.973854 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV420toRGBA8edge 87.5 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV211toRGBA8 91.15385 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV211toRGBA8edge 92.17391 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV444toRGBA8 90.670105 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV444toRGBA8edge 88.90909 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] baseline: code 660/6596 data None functions 2 fuzzy 90.7022 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] pool: IDENTICAL +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] objdiff: code 4636/6184 data None/None functions 11/13 fuzzy 98.0925 linked code 0 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] instruction-exact functions: 11/13 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] section .text size 6184 match 98.0925 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_set_converterRGB565 93.91765 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] below 100: TMCJPEGDEC_converterYUV411toRGB565 91.17512 +[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] baseline: code 2648/6184 data None functions 7 fuzzy 96.9508 +[src/utility/iplESMisc] pool: IDENTICAL +[src/utility/iplESMisc] objdiff: code 9404/11200 data 4416/4416 functions 30/31 fuzzy 99.8625 linked code 0 +[src/utility/iplESMisc] instruction-exact functions: 30/31 +[src/utility/iplESMisc] section .data size 4384 match 100.0 +[src/utility/iplESMisc] section .sdata size 32 match 100.0 +[src/utility/iplESMisc] section .text size 11200 match 99.8625 +[src/utility/iplESMisc] below 100: DeleteUnauthorizedData__Q33ipl7utility6ESMiscFPQ23EGG4Heap 99.14254 +[src/utility/iplESMisc] baseline: code 9404/11200 data 4416 functions 30 fuzzy 99.8625 +regressions vs baseline: 0 +global matched_code_percent: 93.03613 -> 93.10251 +global fuzzy_match_percent: 99.78464 -> 99.78700 +global complete_code_percent: 77.53828 -> 77.53828 +global matched_data_percent: 99.99410 -> 99.99410 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +GATE PASS +``` + +Fresh ninja progress/report generation followed the clean gate. Exact-name objdiff is100.0 for all four; fresh ctxdiff is106/106,136/136,141/141,114/114 with diffs0 each. Explicit pool_diff checks: RGBA8 0/0, RGB565 0/0, ESMisc114/114 identical. Final source review and git diff --check pass. No push, PR, merge, rebase, other-worktree edit or subagent. -- 2.49.1