Compare commits
6 Commits
agent/fix/
...
agent/w092
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
66c7a65d23 | ||
|
|
6604f7319c | ||
|
|
426c03386e | ||
|
|
7152b04d83 | ||
|
|
0155de3e71 | ||
|
|
9321a926cf |
@@ -1215,8 +1215,8 @@ config.libs = [
|
||||
Object(Matching, "reschange/iqdec_resolution_change_a3.c"),
|
||||
Object(Matching, "reschange/idct_resolution_change_var.c"),
|
||||
|
||||
Object(NonMatching, "texturecvtr/Texture_MCUtoY8U8V8.c"),
|
||||
Object(NonMatching, "texturecvtr/Texture_MCUtoRGB565.c"),
|
||||
Object(Matching, "texturecvtr/Texture_MCUtoY8U8V8.c"),
|
||||
Object(Matching, "texturecvtr/Texture_MCUtoRGB565.c"),
|
||||
Object(NonMatching, "texturecvtr/Texture_MCUtoRGBA8.c"),
|
||||
|
||||
Object(Matching, "b65/iqdec_b65_frv32.c"),
|
||||
|
||||
@@ -14,7 +14,37 @@ static void TMCJPEGDEC_converterYUV444toRGB565edge(TMCCJPEGDecWork*, s32, s32);
|
||||
static void TMCJPEGDEC_converterYUV400toRGB565(TMCCJPEGDecWork*, s32, s32);
|
||||
static void TMCJPEGDEC_converterYUV400toRGB565edge(TMCCJPEGDecWork*, s32, s32);
|
||||
|
||||
#pragma push
|
||||
#pragma optimization_level 1
|
||||
s32 TMCJPEGDEC_set_converterRGB565(TMCCJPEGDecWork* work) {
|
||||
u8 mode411;
|
||||
u8* crBlock411;
|
||||
u8* cbBlock411;
|
||||
u8* fourthRow411;
|
||||
u8* thirdRow411;
|
||||
u8* secondRow411;
|
||||
u8* firstRow411;
|
||||
TMCConverterFunc* edgeConverter411;
|
||||
TMCConverterFunc* converter411;
|
||||
|
||||
u8 mode422;
|
||||
u8* crBlock422;
|
||||
u8* cbBlock422;
|
||||
u8* secondRow422;
|
||||
u8* firstRow422;
|
||||
TMCConverterFunc* edgeConverter422;
|
||||
TMCConverterFunc* converter422;
|
||||
|
||||
u8 mode420;
|
||||
u8* crBlock420;
|
||||
u8* cbBlock420;
|
||||
u8* fourthRow420;
|
||||
u8* thirdRow420;
|
||||
u8* secondRow420;
|
||||
u8* firstRow420;
|
||||
TMCConverterFunc* edgeConverter420;
|
||||
TMCConverterFunc* converter420;
|
||||
|
||||
u8* buffer;
|
||||
s32 componentCount;
|
||||
TMCCJPEGDecState* state;
|
||||
@@ -25,97 +55,84 @@ s32 TMCJPEGDEC_set_converterRGB565(TMCCJPEGDecWork* work) {
|
||||
|
||||
switch (componentCount) {
|
||||
case 0: {
|
||||
u8 mode;
|
||||
u8* firstRow;
|
||||
u8* secondRow;
|
||||
u8* thirdRow;
|
||||
u8* fourthRow;
|
||||
u8* cbBlock;
|
||||
u8* crBlock;
|
||||
|
||||
mode = work->idctMode;
|
||||
firstRow = buffer + 4;
|
||||
work->pConverterFunc = TMCJPEGDEC_converterYUV411toRGB565;
|
||||
work->pConverterFuncEdge = TMCJPEGDEC_converterYUV411toRGB565edge;
|
||||
secondRow = firstRow + mode;
|
||||
thirdRow = secondRow + mode;
|
||||
fourthRow = thirdRow + mode;
|
||||
cbBlock = buffer + 260;
|
||||
crBlock = buffer + 324;
|
||||
work->pConvRowPtrs[0] = firstRow;
|
||||
work->pConvRowPtrs[1] = secondRow;
|
||||
work->pConvRowPtrs[2] = thirdRow;
|
||||
work->pConvRowPtrs[3] = fourthRow;
|
||||
work->pConvRowPtrs[5] = cbBlock;
|
||||
work->pConvRowPtrs[6] = crBlock;
|
||||
mode411 = work->idctMode;
|
||||
firstRow411 = buffer + 4;
|
||||
converter411 = TMCJPEGDEC_converterYUV411toRGB565;
|
||||
edgeConverter411 = TMCJPEGDEC_converterYUV411toRGB565edge;
|
||||
secondRow411 = firstRow411 + mode411;
|
||||
thirdRow411 = secondRow411 + mode411;
|
||||
fourthRow411 = thirdRow411 + mode411;
|
||||
cbBlock411 = buffer + 260;
|
||||
crBlock411 = buffer + 324;
|
||||
work->pConverterFunc = converter411;
|
||||
work->pConverterFuncEdge = edgeConverter411;
|
||||
work->pConvRowPtrs[0] = firstRow411;
|
||||
work->pConvRowPtrs[1] = secondRow411;
|
||||
work->pConvRowPtrs[2] = thirdRow411;
|
||||
work->pConvRowPtrs[3] = fourthRow411;
|
||||
work->pConvRowPtrs[5] = cbBlock411;
|
||||
work->pConvRowPtrs[6] = crBlock411;
|
||||
work->pitch = 32;
|
||||
work->converterFlags = 0;
|
||||
break;
|
||||
}
|
||||
case 1: {
|
||||
u8 mode;
|
||||
u8* firstRow;
|
||||
u8* secondRow;
|
||||
u8* cbBlock;
|
||||
u8* crBlock;
|
||||
|
||||
mode = work->idctMode;
|
||||
firstRow = buffer + 4;
|
||||
work->pConverterFunc = TMCJPEGDEC_converterYUV422toRGB565;
|
||||
work->pConverterFuncEdge = TMCJPEGDEC_converterYUV422toRGB565edge;
|
||||
secondRow = firstRow + mode;
|
||||
cbBlock = buffer + 132;
|
||||
crBlock = buffer + 196;
|
||||
work->pConvRowPtrs[0] = firstRow;
|
||||
work->pConvRowPtrs[1] = secondRow;
|
||||
work->pConvRowPtrs[5] = cbBlock;
|
||||
work->pConvRowPtrs[6] = crBlock;
|
||||
mode422 = work->idctMode;
|
||||
firstRow422 = buffer + 4;
|
||||
converter422 = TMCJPEGDEC_converterYUV422toRGB565;
|
||||
edgeConverter422 = TMCJPEGDEC_converterYUV422toRGB565edge;
|
||||
secondRow422 = firstRow422 + mode422;
|
||||
cbBlock422 = buffer + 132;
|
||||
crBlock422 = buffer + 196;
|
||||
work->pConverterFunc = converter422;
|
||||
work->pConverterFuncEdge = edgeConverter422;
|
||||
work->pConvRowPtrs[0] = firstRow422;
|
||||
work->pConvRowPtrs[1] = secondRow422;
|
||||
work->pConvRowPtrs[5] = cbBlock422;
|
||||
work->pConvRowPtrs[6] = crBlock422;
|
||||
work->pitch = 16;
|
||||
work->converterFlags = 0;
|
||||
break;
|
||||
}
|
||||
case 2: {
|
||||
u8 mode;
|
||||
u8* firstRow;
|
||||
u8* secondRow;
|
||||
u8* thirdRow;
|
||||
u8* fourthRow;
|
||||
u8* cbBlock;
|
||||
u8* crBlock;
|
||||
|
||||
mode = work->idctMode;
|
||||
firstRow = buffer + 4;
|
||||
work->pConverterFunc = TMCJPEGDEC_converterYUV420toRGB565;
|
||||
work->pConverterFuncEdge = TMCJPEGDEC_converterYUV420toRGB565edge;
|
||||
secondRow = firstRow + mode;
|
||||
thirdRow = firstRow + mode * 16;
|
||||
fourthRow = thirdRow + mode;
|
||||
cbBlock = buffer + 260;
|
||||
crBlock = buffer + 324;
|
||||
work->pConvRowPtrs[0] = firstRow;
|
||||
work->pConvRowPtrs[1] = secondRow;
|
||||
work->pConvRowPtrs[2] = thirdRow;
|
||||
work->pConvRowPtrs[3] = fourthRow;
|
||||
work->pConvRowPtrs[5] = cbBlock;
|
||||
work->pConvRowPtrs[6] = crBlock;
|
||||
mode420 = work->idctMode;
|
||||
firstRow420 = buffer + 4;
|
||||
converter420 = TMCJPEGDEC_converterYUV420toRGB565;
|
||||
edgeConverter420 = TMCJPEGDEC_converterYUV420toRGB565edge;
|
||||
secondRow420 = firstRow420 + mode420;
|
||||
thirdRow420 = firstRow420 + mode420 * 16;
|
||||
fourthRow420 = thirdRow420 + mode420;
|
||||
cbBlock420 = buffer + 260;
|
||||
crBlock420 = buffer + 324;
|
||||
work->pConverterFunc = converter420;
|
||||
work->pConverterFuncEdge = edgeConverter420;
|
||||
work->pConvRowPtrs[0] = firstRow420;
|
||||
work->pConvRowPtrs[1] = secondRow420;
|
||||
work->pConvRowPtrs[2] = thirdRow420;
|
||||
work->pConvRowPtrs[3] = fourthRow420;
|
||||
work->pConvRowPtrs[5] = cbBlock420;
|
||||
work->pConvRowPtrs[6] = crBlock420;
|
||||
work->pitch = 16;
|
||||
work->converterFlags = 0;
|
||||
break;
|
||||
}
|
||||
case 3: {
|
||||
u8 mode;
|
||||
u8* firstRow;
|
||||
u8* secondRow;
|
||||
u8* cbBlock;
|
||||
u32 mode;
|
||||
u8* crBlock;
|
||||
|
||||
u8* cbBlock;
|
||||
u8* secondRow;
|
||||
u8* firstRow;
|
||||
TMCConverterFunc* edgeConverter;
|
||||
TMCConverterFunc* converter;
|
||||
mode = work->idctMode;
|
||||
firstRow = buffer + 4;
|
||||
work->pConverterFunc = TMCJPEGDEC_converterYUV211toRGB565;
|
||||
work->pConverterFuncEdge = TMCJPEGDEC_converterYUV211toRGB565edge;
|
||||
converter = TMCJPEGDEC_converterYUV211toRGB565;
|
||||
edgeConverter = TMCJPEGDEC_converterYUV211toRGB565edge;
|
||||
secondRow = firstRow + mode * 8;
|
||||
cbBlock = buffer + 132;
|
||||
crBlock = buffer + 196;
|
||||
work->pConverterFunc = converter;
|
||||
work->pConverterFuncEdge = edgeConverter;
|
||||
work->pConvRowPtrs[0] = firstRow;
|
||||
work->pConvRowPtrs[1] = secondRow;
|
||||
work->pConvRowPtrs[5] = cbBlock;
|
||||
@@ -125,27 +142,27 @@ s32 TMCJPEGDEC_set_converterRGB565(TMCCJPEGDecWork* work) {
|
||||
break;
|
||||
}
|
||||
case 4: {
|
||||
TMCConverterFunc* converter;
|
||||
TMCConverterFunc* edgeConverter;
|
||||
TMCConverterFunc* converter;
|
||||
converter = TMCJPEGDEC_converterYUV444toRGB565;
|
||||
edgeConverter = TMCJPEGDEC_converterYUV444toRGB565edge;
|
||||
work->pConverterFunc = converter;
|
||||
work->pConverterFuncEdge = edgeConverter;
|
||||
work->pConvRowPtrs[0] = buffer + 4;
|
||||
work->pConvRowPtrs[5] = buffer + 0x44;
|
||||
work->pConvRowPtrs[6] = buffer + 0x84;
|
||||
work->pConverterFunc = converter;
|
||||
work->pConverterFuncEdge = edgeConverter;
|
||||
work->pitch = 0x08;
|
||||
work->converterFlags = 0;
|
||||
break;
|
||||
}
|
||||
case 5: {
|
||||
TMCConverterFunc* converter;
|
||||
TMCConverterFunc* edgeConverter;
|
||||
TMCConverterFunc* converter;
|
||||
converter = TMCJPEGDEC_converterYUV400toRGB565;
|
||||
edgeConverter = TMCJPEGDEC_converterYUV400toRGB565edge;
|
||||
work->pConvRowPtrs[0] = buffer + 4;
|
||||
work->pConverterFunc = converter;
|
||||
work->pConverterFuncEdge = edgeConverter;
|
||||
work->pConvRowPtrs[0] = buffer + 4;
|
||||
work->pitch = 0x08;
|
||||
work->converterFlags = 0;
|
||||
break;
|
||||
@@ -158,13 +175,19 @@ s32 TMCJPEGDEC_set_converterRGB565(TMCCJPEGDecWork* work) {
|
||||
{
|
||||
s32 width = state->jpegWidth;
|
||||
s32 height = state->jpegHeight;
|
||||
state->convWidth = ((u32)width / 4 + (width % 4 != 0)) * 4;
|
||||
state->convHeight = ((u32)height / 4 + (height % 4 != 0)) * 4;
|
||||
s32 roundedWidth;
|
||||
s32 heightPadding;
|
||||
|
||||
roundedWidth = (u32)width / 4 + (width % 4 != 0);
|
||||
heightPadding = height % 4 != 0;
|
||||
state->convWidth = roundedWidth * 4;
|
||||
state->convHeight = ((u32)height / 4 + heightPadding) * 4;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
#pragma pop
|
||||
|
||||
static void TMCJPEGDEC_converterYUV411toRGB565(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
s32 tileColumn;
|
||||
s32 red;
|
||||
|
||||
@@ -14,7 +14,37 @@ static void TMCJPEGDEC_converterYUV444toRGBA8edge(TMCCJPEGDecWork*, s32, s32);
|
||||
static void TMCJPEGDEC_converterYUV400toRGBA8(TMCCJPEGDecWork*, s32, s32);
|
||||
static void TMCJPEGDEC_converterYUV400toRGBA8edge(TMCCJPEGDecWork*, s32, s32);
|
||||
|
||||
#pragma push
|
||||
#pragma optimization_level 1
|
||||
s32 TMCJPEGDEC_set_converterRGBA8(TMCCJPEGDecWork* work) {
|
||||
u8 mode411;
|
||||
u8* crBlock411;
|
||||
u8* cbBlock411;
|
||||
u8* fourthRow411;
|
||||
u8* thirdRow411;
|
||||
u8* secondRow411;
|
||||
u8* firstRow411;
|
||||
TMCConverterFunc* edgeConverter411;
|
||||
TMCConverterFunc* converter411;
|
||||
|
||||
u8 mode422;
|
||||
u8* crBlock422;
|
||||
u8* cbBlock422;
|
||||
u8* secondRow422;
|
||||
u8* firstRow422;
|
||||
TMCConverterFunc* edgeConverter422;
|
||||
TMCConverterFunc* converter422;
|
||||
|
||||
u8 mode420;
|
||||
u8* crBlock420;
|
||||
u8* cbBlock420;
|
||||
u8* fourthRow420;
|
||||
u8* thirdRow420;
|
||||
u8* secondRow420;
|
||||
u8* firstRow420;
|
||||
TMCConverterFunc* edgeConverter420;
|
||||
TMCConverterFunc* converter420;
|
||||
|
||||
u8* buffer;
|
||||
s32 componentCount;
|
||||
TMCCJPEGDecState* state;
|
||||
@@ -25,97 +55,84 @@ s32 TMCJPEGDEC_set_converterRGBA8(TMCCJPEGDecWork* work) {
|
||||
|
||||
switch (componentCount) {
|
||||
case 0: {
|
||||
u8 mode;
|
||||
u8* firstRow;
|
||||
u8* secondRow;
|
||||
u8* thirdRow;
|
||||
u8* fourthRow;
|
||||
u8* cbBlock;
|
||||
u8* crBlock;
|
||||
|
||||
mode = work->idctMode;
|
||||
firstRow = buffer + 4;
|
||||
work->pConverterFunc = TMCJPEGDEC_converterYUV411toRGBA8;
|
||||
work->pConverterFuncEdge = TMCJPEGDEC_converterYUV411toRGBA8edge;
|
||||
secondRow = firstRow + mode;
|
||||
thirdRow = secondRow + mode;
|
||||
fourthRow = thirdRow + mode;
|
||||
cbBlock = buffer + 260;
|
||||
crBlock = buffer + 324;
|
||||
work->pConvRowPtrs[0] = firstRow;
|
||||
work->pConvRowPtrs[1] = secondRow;
|
||||
work->pConvRowPtrs[2] = thirdRow;
|
||||
work->pConvRowPtrs[3] = fourthRow;
|
||||
work->pConvRowPtrs[5] = cbBlock;
|
||||
work->pConvRowPtrs[6] = crBlock;
|
||||
mode411 = work->idctMode;
|
||||
firstRow411 = buffer + 4;
|
||||
converter411 = TMCJPEGDEC_converterYUV411toRGBA8;
|
||||
edgeConverter411 = TMCJPEGDEC_converterYUV411toRGBA8edge;
|
||||
secondRow411 = firstRow411 + mode411;
|
||||
thirdRow411 = secondRow411 + mode411;
|
||||
fourthRow411 = thirdRow411 + mode411;
|
||||
cbBlock411 = buffer + 260;
|
||||
crBlock411 = buffer + 324;
|
||||
work->pConverterFunc = converter411;
|
||||
work->pConverterFuncEdge = edgeConverter411;
|
||||
work->pConvRowPtrs[0] = firstRow411;
|
||||
work->pConvRowPtrs[1] = secondRow411;
|
||||
work->pConvRowPtrs[2] = thirdRow411;
|
||||
work->pConvRowPtrs[3] = fourthRow411;
|
||||
work->pConvRowPtrs[5] = cbBlock411;
|
||||
work->pConvRowPtrs[6] = crBlock411;
|
||||
work->pitch = 32;
|
||||
work->converterFlags = 0;
|
||||
break;
|
||||
}
|
||||
case 1: {
|
||||
u8 mode;
|
||||
u8* firstRow;
|
||||
u8* secondRow;
|
||||
u8* cbBlock;
|
||||
u8* crBlock;
|
||||
|
||||
mode = work->idctMode;
|
||||
firstRow = buffer + 4;
|
||||
work->pConverterFunc = TMCJPEGDEC_converterYUV422toRGBA8;
|
||||
work->pConverterFuncEdge = TMCJPEGDEC_converterYUV422toRGBA8edge;
|
||||
secondRow = firstRow + mode;
|
||||
cbBlock = buffer + 132;
|
||||
crBlock = buffer + 196;
|
||||
work->pConvRowPtrs[0] = firstRow;
|
||||
work->pConvRowPtrs[1] = secondRow;
|
||||
work->pConvRowPtrs[5] = cbBlock;
|
||||
work->pConvRowPtrs[6] = crBlock;
|
||||
mode422 = work->idctMode;
|
||||
firstRow422 = buffer + 4;
|
||||
converter422 = TMCJPEGDEC_converterYUV422toRGBA8;
|
||||
edgeConverter422 = TMCJPEGDEC_converterYUV422toRGBA8edge;
|
||||
secondRow422 = firstRow422 + mode422;
|
||||
cbBlock422 = buffer + 132;
|
||||
crBlock422 = buffer + 196;
|
||||
work->pConverterFunc = converter422;
|
||||
work->pConverterFuncEdge = edgeConverter422;
|
||||
work->pConvRowPtrs[0] = firstRow422;
|
||||
work->pConvRowPtrs[1] = secondRow422;
|
||||
work->pConvRowPtrs[5] = cbBlock422;
|
||||
work->pConvRowPtrs[6] = crBlock422;
|
||||
work->pitch = 16;
|
||||
work->converterFlags = 0;
|
||||
break;
|
||||
}
|
||||
case 2: {
|
||||
u8 mode;
|
||||
u8* firstRow;
|
||||
u8* secondRow;
|
||||
u8* thirdRow;
|
||||
u8* fourthRow;
|
||||
u8* cbBlock;
|
||||
u8* crBlock;
|
||||
|
||||
mode = work->idctMode;
|
||||
firstRow = buffer + 4;
|
||||
work->pConverterFunc = TMCJPEGDEC_converterYUV420toRGBA8;
|
||||
work->pConverterFuncEdge = TMCJPEGDEC_converterYUV420toRGBA8edge;
|
||||
secondRow = firstRow + mode;
|
||||
thirdRow = firstRow + mode * 16;
|
||||
fourthRow = thirdRow + mode;
|
||||
cbBlock = buffer + 260;
|
||||
crBlock = buffer + 324;
|
||||
work->pConvRowPtrs[0] = firstRow;
|
||||
work->pConvRowPtrs[1] = secondRow;
|
||||
work->pConvRowPtrs[2] = thirdRow;
|
||||
work->pConvRowPtrs[3] = fourthRow;
|
||||
work->pConvRowPtrs[5] = cbBlock;
|
||||
work->pConvRowPtrs[6] = crBlock;
|
||||
mode420 = work->idctMode;
|
||||
firstRow420 = buffer + 4;
|
||||
converter420 = TMCJPEGDEC_converterYUV420toRGBA8;
|
||||
edgeConverter420 = TMCJPEGDEC_converterYUV420toRGBA8edge;
|
||||
secondRow420 = firstRow420 + mode420;
|
||||
thirdRow420 = firstRow420 + mode420 * 16;
|
||||
fourthRow420 = thirdRow420 + mode420;
|
||||
cbBlock420 = buffer + 260;
|
||||
crBlock420 = buffer + 324;
|
||||
work->pConverterFunc = converter420;
|
||||
work->pConverterFuncEdge = edgeConverter420;
|
||||
work->pConvRowPtrs[0] = firstRow420;
|
||||
work->pConvRowPtrs[1] = secondRow420;
|
||||
work->pConvRowPtrs[2] = thirdRow420;
|
||||
work->pConvRowPtrs[3] = fourthRow420;
|
||||
work->pConvRowPtrs[5] = cbBlock420;
|
||||
work->pConvRowPtrs[6] = crBlock420;
|
||||
work->pitch = 16;
|
||||
work->converterFlags = 0;
|
||||
break;
|
||||
}
|
||||
case 3: {
|
||||
u8 mode;
|
||||
u8* firstRow;
|
||||
u8* secondRow;
|
||||
u8* cbBlock;
|
||||
u32 mode;
|
||||
u8* crBlock;
|
||||
|
||||
u8* cbBlock;
|
||||
u8* secondRow;
|
||||
u8* firstRow;
|
||||
TMCConverterFunc* edgeConverter;
|
||||
TMCConverterFunc* converter;
|
||||
mode = work->idctMode;
|
||||
firstRow = buffer + 4;
|
||||
work->pConverterFunc = TMCJPEGDEC_converterYUV211toRGBA8;
|
||||
work->pConverterFuncEdge = TMCJPEGDEC_converterYUV211toRGBA8edge;
|
||||
converter = TMCJPEGDEC_converterYUV211toRGBA8;
|
||||
edgeConverter = TMCJPEGDEC_converterYUV211toRGBA8edge;
|
||||
secondRow = firstRow + mode * 8;
|
||||
cbBlock = buffer + 132;
|
||||
crBlock = buffer + 196;
|
||||
work->pConverterFunc = converter;
|
||||
work->pConverterFuncEdge = edgeConverter;
|
||||
work->pConvRowPtrs[0] = firstRow;
|
||||
work->pConvRowPtrs[1] = secondRow;
|
||||
work->pConvRowPtrs[5] = cbBlock;
|
||||
@@ -125,27 +142,27 @@ s32 TMCJPEGDEC_set_converterRGBA8(TMCCJPEGDecWork* work) {
|
||||
break;
|
||||
}
|
||||
case 4: {
|
||||
TMCConverterFunc* converter;
|
||||
TMCConverterFunc* edgeConverter;
|
||||
TMCConverterFunc* converter;
|
||||
converter = TMCJPEGDEC_converterYUV444toRGBA8;
|
||||
edgeConverter = TMCJPEGDEC_converterYUV444toRGBA8edge;
|
||||
work->pConverterFunc = converter;
|
||||
work->pConverterFuncEdge = edgeConverter;
|
||||
work->pConvRowPtrs[0] = buffer + 4;
|
||||
work->pConvRowPtrs[5] = buffer + 0x44;
|
||||
work->pConvRowPtrs[6] = buffer + 0x84;
|
||||
work->pConverterFunc = converter;
|
||||
work->pConverterFuncEdge = edgeConverter;
|
||||
work->pitch = 0x08;
|
||||
work->converterFlags = 0;
|
||||
break;
|
||||
}
|
||||
case 5: {
|
||||
TMCConverterFunc* converter;
|
||||
TMCConverterFunc* edgeConverter;
|
||||
TMCConverterFunc* converter;
|
||||
converter = TMCJPEGDEC_converterYUV400toRGBA8;
|
||||
edgeConverter = TMCJPEGDEC_converterYUV400toRGBA8edge;
|
||||
work->pConvRowPtrs[0] = buffer + 4;
|
||||
work->pConverterFunc = converter;
|
||||
work->pConverterFuncEdge = edgeConverter;
|
||||
work->pConvRowPtrs[0] = buffer + 4;
|
||||
work->pitch = 0x08;
|
||||
work->converterFlags = 0;
|
||||
break;
|
||||
@@ -158,13 +175,19 @@ s32 TMCJPEGDEC_set_converterRGBA8(TMCCJPEGDecWork* work) {
|
||||
{
|
||||
s32 width = state->jpegWidth;
|
||||
s32 height = state->jpegHeight;
|
||||
state->convWidth = ((u32)width / 4 + (width % 4 != 0)) * 4;
|
||||
state->convHeight = ((u32)height / 4 + (height % 4 != 0)) * 4;
|
||||
s32 roundedWidth;
|
||||
s32 heightPadding;
|
||||
|
||||
roundedWidth = (u32)width / 4 + (width % 4 != 0);
|
||||
heightPadding = height % 4 != 0;
|
||||
state->convWidth = roundedWidth * 4;
|
||||
state->convHeight = ((u32)height / 4 + heightPadding) * 4;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
#pragma pop
|
||||
|
||||
static void TMCJPEGDEC_converterYUV411toRGBA8(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
s32 red;
|
||||
u8* luminance;
|
||||
|
||||
@@ -14,7 +14,37 @@ static void TMCJPEG_814F32E4(TMCCJPEGDecWork*, s32, s32);
|
||||
static void TMCJPEG_814F34A4(TMCCJPEGDecWork*, s32, s32);
|
||||
static void TMCJPEG_814F372C(TMCCJPEGDecWork*, s32, s32);
|
||||
|
||||
#pragma push
|
||||
#pragma optimization_level 1
|
||||
s32 TMCJPEGDEC_set_converterY8U8V8(TMCCJPEGDecWork* work) {
|
||||
u8 mode411;
|
||||
u8* crBlock411;
|
||||
u8* cbBlock411;
|
||||
u8* fourthRow411;
|
||||
u8* thirdRow411;
|
||||
u8* secondRow411;
|
||||
u8* firstRow411;
|
||||
TMCConverterFunc* edgeConverter411;
|
||||
TMCConverterFunc* converter411;
|
||||
|
||||
u8 mode422;
|
||||
u8* crBlock422;
|
||||
u8* cbBlock422;
|
||||
u8* secondRow422;
|
||||
u8* firstRow422;
|
||||
TMCConverterFunc* edgeConverter422;
|
||||
TMCConverterFunc* converter422;
|
||||
|
||||
u8 mode420;
|
||||
u8* crBlock420;
|
||||
u8* cbBlock420;
|
||||
u8* fourthRow420;
|
||||
u8* thirdRow420;
|
||||
u8* secondRow420;
|
||||
u8* firstRow420;
|
||||
TMCConverterFunc* edgeConverter420;
|
||||
TMCConverterFunc* converter420;
|
||||
|
||||
u8* buffer;
|
||||
s32 componentCount;
|
||||
TMCCJPEGDecState* state;
|
||||
@@ -25,97 +55,84 @@ s32 TMCJPEGDEC_set_converterY8U8V8(TMCCJPEGDecWork* work) {
|
||||
|
||||
switch (componentCount) {
|
||||
case 0: {
|
||||
u8 mode;
|
||||
u8* firstRow;
|
||||
u8* secondRow;
|
||||
u8* thirdRow;
|
||||
u8* fourthRow;
|
||||
u8* cbBlock;
|
||||
u8* crBlock;
|
||||
|
||||
mode = work->idctMode;
|
||||
firstRow = buffer + 4;
|
||||
work->pConverterFunc = TMCJPEG_814EFEAC;
|
||||
work->pConverterFuncEdge = TMCJPEG_814F043C;
|
||||
secondRow = firstRow + mode;
|
||||
thirdRow = secondRow + mode;
|
||||
fourthRow = thirdRow + mode;
|
||||
cbBlock = buffer + 260;
|
||||
crBlock = buffer + 324;
|
||||
work->pConvRowPtrs[0] = firstRow;
|
||||
work->pConvRowPtrs[1] = secondRow;
|
||||
work->pConvRowPtrs[2] = thirdRow;
|
||||
work->pConvRowPtrs[3] = fourthRow;
|
||||
work->pConvRowPtrs[5] = cbBlock;
|
||||
work->pConvRowPtrs[6] = crBlock;
|
||||
mode411 = work->idctMode;
|
||||
firstRow411 = buffer + 4;
|
||||
converter411 = TMCJPEG_814EFEAC;
|
||||
edgeConverter411 = TMCJPEG_814F043C;
|
||||
secondRow411 = firstRow411 + mode411;
|
||||
thirdRow411 = secondRow411 + mode411;
|
||||
fourthRow411 = thirdRow411 + mode411;
|
||||
cbBlock411 = buffer + 260;
|
||||
crBlock411 = buffer + 324;
|
||||
work->pConverterFunc = converter411;
|
||||
work->pConverterFuncEdge = edgeConverter411;
|
||||
work->pConvRowPtrs[0] = firstRow411;
|
||||
work->pConvRowPtrs[1] = secondRow411;
|
||||
work->pConvRowPtrs[2] = thirdRow411;
|
||||
work->pConvRowPtrs[3] = fourthRow411;
|
||||
work->pConvRowPtrs[5] = cbBlock411;
|
||||
work->pConvRowPtrs[6] = crBlock411;
|
||||
work->pitch = 32;
|
||||
work->converterFlags = 0;
|
||||
break;
|
||||
}
|
||||
case 1: {
|
||||
u8 mode;
|
||||
u8* firstRow;
|
||||
u8* secondRow;
|
||||
u8* cbBlock;
|
||||
u8* crBlock;
|
||||
|
||||
mode = work->idctMode;
|
||||
firstRow = buffer + 4;
|
||||
work->pConverterFunc = TMCJPEG_814F0A58;
|
||||
work->pConverterFuncEdge = TMCJPEG_814F11C4;
|
||||
secondRow = firstRow + mode;
|
||||
cbBlock = buffer + 132;
|
||||
crBlock = buffer + 196;
|
||||
work->pConvRowPtrs[0] = firstRow;
|
||||
work->pConvRowPtrs[1] = secondRow;
|
||||
work->pConvRowPtrs[5] = cbBlock;
|
||||
work->pConvRowPtrs[6] = crBlock;
|
||||
mode422 = work->idctMode;
|
||||
firstRow422 = buffer + 4;
|
||||
converter422 = TMCJPEG_814F0A58;
|
||||
edgeConverter422 = TMCJPEG_814F11C4;
|
||||
secondRow422 = firstRow422 + mode422;
|
||||
cbBlock422 = buffer + 132;
|
||||
crBlock422 = buffer + 196;
|
||||
work->pConverterFunc = converter422;
|
||||
work->pConverterFuncEdge = edgeConverter422;
|
||||
work->pConvRowPtrs[0] = firstRow422;
|
||||
work->pConvRowPtrs[1] = secondRow422;
|
||||
work->pConvRowPtrs[5] = cbBlock422;
|
||||
work->pConvRowPtrs[6] = crBlock422;
|
||||
work->pitch = 16;
|
||||
work->converterFlags = 0;
|
||||
break;
|
||||
}
|
||||
case 2: {
|
||||
u8 mode;
|
||||
u8* firstRow;
|
||||
u8* secondRow;
|
||||
u8* thirdRow;
|
||||
u8* fourthRow;
|
||||
u8* cbBlock;
|
||||
u8* crBlock;
|
||||
|
||||
mode = work->idctMode;
|
||||
firstRow = buffer + 4;
|
||||
work->pConverterFunc = TMCJPEG_814F17E0;
|
||||
work->pConverterFuncEdge = TMCJPEG_814F1F48;
|
||||
secondRow = firstRow + mode;
|
||||
thirdRow = firstRow + mode * 16;
|
||||
fourthRow = thirdRow + mode;
|
||||
cbBlock = buffer + 260;
|
||||
crBlock = buffer + 324;
|
||||
work->pConvRowPtrs[0] = firstRow;
|
||||
work->pConvRowPtrs[1] = secondRow;
|
||||
work->pConvRowPtrs[2] = thirdRow;
|
||||
work->pConvRowPtrs[3] = fourthRow;
|
||||
work->pConvRowPtrs[5] = cbBlock;
|
||||
work->pConvRowPtrs[6] = crBlock;
|
||||
mode420 = work->idctMode;
|
||||
firstRow420 = buffer + 4;
|
||||
converter420 = TMCJPEG_814F17E0;
|
||||
edgeConverter420 = TMCJPEG_814F1F48;
|
||||
secondRow420 = firstRow420 + mode420;
|
||||
thirdRow420 = firstRow420 + mode420 * 16;
|
||||
fourthRow420 = thirdRow420 + mode420;
|
||||
cbBlock420 = buffer + 260;
|
||||
crBlock420 = buffer + 324;
|
||||
work->pConverterFunc = converter420;
|
||||
work->pConverterFuncEdge = edgeConverter420;
|
||||
work->pConvRowPtrs[0] = firstRow420;
|
||||
work->pConvRowPtrs[1] = secondRow420;
|
||||
work->pConvRowPtrs[2] = thirdRow420;
|
||||
work->pConvRowPtrs[3] = fourthRow420;
|
||||
work->pConvRowPtrs[5] = cbBlock420;
|
||||
work->pConvRowPtrs[6] = crBlock420;
|
||||
work->pitch = 16;
|
||||
work->converterFlags = 0;
|
||||
break;
|
||||
}
|
||||
case 3: {
|
||||
u8 mode;
|
||||
u8* firstRow;
|
||||
u8* secondRow;
|
||||
u8* cbBlock;
|
||||
u32 mode;
|
||||
u8* crBlock;
|
||||
|
||||
u8* cbBlock;
|
||||
u8* secondRow;
|
||||
u8* firstRow;
|
||||
TMCConverterFunc* edgeConverter;
|
||||
TMCConverterFunc* converter;
|
||||
mode = work->idctMode;
|
||||
firstRow = buffer + 4;
|
||||
work->pConverterFunc = TMCJPEG_814F2570;
|
||||
work->pConverterFuncEdge = TMCJPEG_814F2B50;
|
||||
converter = TMCJPEG_814F2570;
|
||||
edgeConverter = TMCJPEG_814F2B50;
|
||||
secondRow = firstRow + mode * 8;
|
||||
cbBlock = buffer + 132;
|
||||
crBlock = buffer + 196;
|
||||
work->pConverterFunc = converter;
|
||||
work->pConverterFuncEdge = edgeConverter;
|
||||
work->pConvRowPtrs[0] = firstRow;
|
||||
work->pConvRowPtrs[1] = secondRow;
|
||||
work->pConvRowPtrs[5] = cbBlock;
|
||||
@@ -125,27 +142,27 @@ s32 TMCJPEGDEC_set_converterY8U8V8(TMCCJPEGDecWork* work) {
|
||||
break;
|
||||
}
|
||||
case 4: {
|
||||
TMCConverterFunc* converter;
|
||||
TMCConverterFunc* edgeConverter;
|
||||
TMCConverterFunc* converter;
|
||||
converter = TMCJPEG_814F3158;
|
||||
edgeConverter = TMCJPEG_814F32E4;
|
||||
work->pConverterFunc = converter;
|
||||
work->pConverterFuncEdge = edgeConverter;
|
||||
work->pConvRowPtrs[0] = buffer + 4;
|
||||
work->pConvRowPtrs[5] = buffer + 0x44;
|
||||
work->pConvRowPtrs[6] = buffer + 0x84;
|
||||
work->pConverterFunc = converter;
|
||||
work->pConverterFuncEdge = edgeConverter;
|
||||
work->pitch = 0x08;
|
||||
work->converterFlags = 0;
|
||||
break;
|
||||
}
|
||||
case 5: {
|
||||
TMCConverterFunc* converter;
|
||||
TMCConverterFunc* edgeConverter;
|
||||
TMCConverterFunc* converter;
|
||||
converter = TMCJPEG_814F34A4;
|
||||
edgeConverter = TMCJPEG_814F372C;
|
||||
work->pConvRowPtrs[0] = buffer + 4;
|
||||
work->pConverterFunc = converter;
|
||||
work->pConverterFuncEdge = edgeConverter;
|
||||
work->pConvRowPtrs[0] = buffer + 4;
|
||||
work->pitch = 0x08;
|
||||
work->converterFlags = 0;
|
||||
break;
|
||||
@@ -158,16 +175,25 @@ s32 TMCJPEGDEC_set_converterY8U8V8(TMCCJPEGDecWork* work) {
|
||||
{
|
||||
s32 width = state->jpegWidth;
|
||||
s32 height = state->jpegHeight;
|
||||
state->convWidth = ((u32)width / 8 + (width % 8 != 0)) * 8;
|
||||
state->convHeight = ((u32)height / 4 + (height % 4 != 0)) * 4;
|
||||
s32 roundedWidth;
|
||||
s32 heightPadding;
|
||||
|
||||
roundedWidth = (u32)width / 8 + (width % 8 != 0);
|
||||
heightPadding = height % 4 != 0;
|
||||
state->convWidth = roundedWidth * 8;
|
||||
state->convHeight = ((u32)height / 4 + heightPadding) * 4;
|
||||
width = state->outputWidth;
|
||||
height = state->outputHeight;
|
||||
state->chromaWidth = ((u32)width / 8 + (width % 8 != 0)) * 8;
|
||||
state->chromaHeight = ((u32)height / 4 + (height % 4 != 0)) * 4;
|
||||
roundedWidth = (u32)width / 8 + (width % 8 != 0);
|
||||
heightPadding = height % 4 != 0;
|
||||
state->chromaWidth = roundedWidth * 8;
|
||||
state->chromaHeight = ((u32)height / 4 + heightPadding) * 4;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
#pragma pop
|
||||
|
||||
static void TMCJPEG_814EFEAC(TMCCJPEGDecWork* work, s32 x, s32 y) {
|
||||
s32 rowSkip;
|
||||
u8* output;
|
||||
|
||||
@@ -806,16 +806,25 @@ partition_fatal:
|
||||
partition_done:
|
||||
BS2Report("DVDLowOpenPartition done\n");
|
||||
if (*(u8 *)0x8000315D != 0x80) {
|
||||
u32 diBits;
|
||||
u32 diValue;
|
||||
typedef union {
|
||||
u32 value;
|
||||
struct {
|
||||
u32 reserved : 29;
|
||||
u32 bit2 : 1;
|
||||
u32 bit1 : 1;
|
||||
u32 bit0 : 1;
|
||||
} bits;
|
||||
} DIControl;
|
||||
DIControl diBits;
|
||||
DIControl diValue;
|
||||
u32 *diAddr;
|
||||
|
||||
diAddr = (u32 *)0xCC003024;
|
||||
diBits = 2;
|
||||
diBits |= 4;
|
||||
diValue = *diAddr;
|
||||
diValue |= 1;
|
||||
*diAddr = diValue | diBits;
|
||||
diValue.value = *diAddr;
|
||||
diValue.bits.bit0 = 1;
|
||||
diBits.value = 2;
|
||||
diBits.bits.bit2 = 1;
|
||||
*diAddr = diValue.value | diBits.value;
|
||||
enableLegacyDI();
|
||||
}
|
||||
oldInterrupts = OSDisableInterrupts();
|
||||
|
||||
@@ -68,6 +68,19 @@ namespace ipl {
|
||||
|
||||
SDMemory::~SDMemory() {}
|
||||
|
||||
static inline s32 countCachedTitles(const savedata::Manager* saveData) {
|
||||
s32 count = 0;
|
||||
for (s32 i = 0; i < 48; ++i) {
|
||||
if (saveData->getTitleCacheEntry(i) == 0) {
|
||||
break;
|
||||
}
|
||||
++count;
|
||||
}
|
||||
return count;
|
||||
}
|
||||
|
||||
#pragma push
|
||||
#pragma ppc_iro_level 1
|
||||
void SDMemory::create(EGG::Heap* heap, nand::LayoutFile* layoutFile, SDChannelSelect* channelSelect) {
|
||||
s32 cachedTitleCount;
|
||||
const savedata::Manager* saveData;
|
||||
@@ -151,13 +164,7 @@ namespace ipl {
|
||||
textBox->SetString(System::getMessage(0xBA));
|
||||
|
||||
saveData = System::getSaveData();
|
||||
cachedTitleCount = 0;
|
||||
for (s32 i = 0; i < 48; ++i) {
|
||||
if (saveData->getTitleCacheEntry(i) == 0) {
|
||||
break;
|
||||
}
|
||||
++cachedTitleCount;
|
||||
}
|
||||
cachedTitleCount = countCachedTitles(saveData);
|
||||
if (cachedTitleCount >= 5) {
|
||||
mpTitleLayout->FindPaneByName("N_Btn_3")->SetVisible(false);
|
||||
nw4r::lyt::Pane* expandedButton = mpTitleLayout->FindPaneByName("N_Btn_4");
|
||||
@@ -253,6 +260,8 @@ namespace ipl {
|
||||
mTransferFlags[0] = 1;
|
||||
}
|
||||
|
||||
#pragma pop
|
||||
|
||||
void SDMemory::setTitleLists(const TitleRange& nandTitles, const TitleRange& sdTitles) {
|
||||
mNandTitleRange = nandTitles;
|
||||
mSDTitleRange = sdTitles;
|
||||
|
||||
@@ -1780,7 +1780,6 @@ u8 gAtermDigestFill[64] = { 0x80 };
|
||||
s32 ATERMi_AutoConfigThread(void) {
|
||||
s32 result = ATERMRunConfigProtocol();
|
||||
AtermProgress progress;
|
||||
u32 equalityMask;
|
||||
s32 completedState;
|
||||
|
||||
gAtermResult = result;
|
||||
@@ -1791,9 +1790,8 @@ s32 ATERMi_AutoConfigThread(void) {
|
||||
gAtermSocketReady = 0;
|
||||
SOCleanup();
|
||||
}
|
||||
equalityMask = ~(result - 1U | 1U - result);
|
||||
completedState = (result == 1) ? 6 : 7;
|
||||
gAtermDeadline = 0xFFFFFFFF;
|
||||
completedState = ((s32)equalityMask >> 31) + 7;
|
||||
gAtermState = completedState;
|
||||
progress.state = completedState;
|
||||
progress.remainingTime = -1;
|
||||
|
||||
@@ -9,7 +9,7 @@ from pathlib import Path
|
||||
|
||||
|
||||
EXPECTED_DOL_SHA1 = "26116613f624061ba99c8d1a299aaa6efa85670d"
|
||||
EXPECTED_TOTAL_UNITS = 1027
|
||||
EXPECTED_TOTAL_UNITS = 1028
|
||||
EXPECTED_TOTAL_CODE = 2995176
|
||||
EXPECTED_TOTAL_DATA = 1832684
|
||||
EXPECTED_TOTAL_FUNCTIONS = 12563
|
||||
|
||||
14
tools/decomp-assist/iplSetting.attempts.md
Normal file
14
tools/decomp-assist/iplSetting.attempts.md
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
## scanAP (w1010 revisit) — inlined-bool materialization wall
|
||||
Orig inlines `Animator::isPlaying()` (`mState == 1` at +0x14) 3x but always as a
|
||||
MATERIALIZED bool: `lwz rX,0x14; addi r0,rX,-1; cntlzw r0,r0; rlwinm. r0,r0,27,5,31; bne`.
|
||||
Ours fuses to `lwz r0,0x14; cmpwi r0,1; beq` — 6 insns shorter overall (272 vs 266).
|
||||
Tried and rejected (MWCC normalizes/folds all of them):
|
||||
- `isPlaying() == false` at the call site
|
||||
- `bool playing = anim->isPlaying(); if (!playing)` named local (fuses; eggColorFader's
|
||||
fadeOut materializes only because `success` is also RETURNED — a second value-use)
|
||||
- `int isPlaying()` return type — still fuses
|
||||
- `return !(mState != ANIM_STATE_PLAY)` in the header — still fuses
|
||||
Conclusion: orig's bool crosses a real value-boundary (2nd use, or a different inlined
|
||||
shape we haven't identified). Same family as the fused-compare fossil in CHANSVm.
|
||||
Also tried: convertRevIP untouched (98.7, 292B).
|
||||
404
tools/decomp-assist/sol-tiny.attempts.md
Normal file
404
tools/decomp-assist/sol-tiny.attempts.md
Normal file
@@ -0,0 +1,404 @@
|
||||
# sol-tiny scheduler and allocator analysis
|
||||
|
||||
Assigned branch agent/w1008/sol-high-f, HEAD f49f337c. Full 43U build first passed, DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d. Source baseline is clean; existing untracked rx4/rx59/rx70 files belong to earlier work and are preserved. No pushes, PRs, merges, rebases or other worktree edits.
|
||||
|
||||
Prior evidence read before implementation: main and local BS2Mach, kbd_lib, data-d13, scene4, structural-matching, sol-high rounds and register sweeps; historical sol-kbd at 9af09e10, sol-addr at 1d9fcfe8 and sol-bs2 at 58e02efc recovered with git show because those logs are absent from HEAD; opus-bs2 in the assigned checkout. The broad grep also identifies old fz1/fz15/fz16 sweeps. Previous declaration permutations, ordinary pointer/const casts, name accessors, inline parameter permutations, status spellings and volatility sweeps are excluded from this round.
|
||||
|
||||
Acceptance: equal size and zero instruction differences, exact-name objdiff 100%, identical pools, no regressions or artificial source constructs. Commit exact functions individually. Restore non-exact source and save private diffs. Run the requested quick gate over the three owned units at the end. A restored baseline gate is not evidence of a new match.
|
||||
|
||||
## Baseline
|
||||
|
||||
| Unit | Exact functions | Code | Data | Pool |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| BS2Mach | 26/29 | 6024/16980 | 158528/158528 | 91/91 |
|
||||
| iplAddressEdit | 91/94 | 23344/27112 | 2560/2560 | 57/57 |
|
||||
| kbd_lib | 18/21 | 4472/5764 | 5296/5296 | 0/0 narrow strings |
|
||||
|
||||
## CheckBS2CommandStatus
|
||||
|
||||
Baseline 2/406 differing, equal 1624-byte size. The only swap is CCC store and shift in case 0x12.
|
||||
|
||||
| Operation | Register dependencies | Memory dependencies | Latency class |
|
||||
| --- | --- | --- | --- |
|
||||
| lwz r4,DataToc | defines r4 | reads global pointer | load |
|
||||
| stw r6,NandPending | reads r6 | writes volatile pending flag | store |
|
||||
| lwz r5,CacheLength | defines r5 | reads volatile cache length | load |
|
||||
| lwz r3,0(r4) | reads r4, defines r3 | reads TOC partition count | load |
|
||||
| slwi r3,r3,3 | reads and writes r3 | none | integer rotate/mask |
|
||||
| stw r6,CCC | reads r6 | writes completion flag | store |
|
||||
| addi/rlwinm/add/addi | r3 chain and r5 | none | integer ALU |
|
||||
| stw/lwz CacheLength | reads then defines r3 | volatile write followed by read | store/load |
|
||||
|
||||
Target places the independent completion store in the count-load latency slot. Source places it after the shift. Hypothesis to test with PCode: the indirect count read introduces a conservative memory edge to the completion store, or the store is lowered with different alias metadata. The target DAG is inferred from assembly, not captured from retail source.
|
||||
|
||||
## update_friendinfo
|
||||
|
||||
Baseline 2/38 differing, equal 152-byte size. Target prepares r4 before r3 after memset.
|
||||
|
||||
| Operation | Register dependencies | Memory dependencies | Latency class |
|
||||
| --- | --- | --- | --- |
|
||||
| addi r3,r31,8 | reads saved sFriendInfo base, defines argument r3 | computes name address only | integer ALU |
|
||||
| addi r4,r30,0x2b4 | reads saved this, defines argument r4 | computes String name address only | integer ALU |
|
||||
| li r5,10 | defines argument r5 | none | integer ALU |
|
||||
| bl wcsncpy | consumes r3/r4/r5, clobbers caller-saved registers | reads name source and writes destination | call |
|
||||
|
||||
The pair has no true register or memory dependency. Prior accessor trials preserve the order before allocation. A different creation/evaluation order or a move eliminated after scheduling is required; changing the text of the same address expression cannot create such an edge. Inspect frontend-to-backend PCode and any return value from memset before testing new address provenance.
|
||||
|
||||
## kbd_led_handler
|
||||
|
||||
Baseline 3/25 differing, equal 100-byte size. This is a CFG layout difference rather than an instruction scheduler swap: target cmpwi success,1 / bne error / li 0 / b join / li 7. Source dispatches beq success / li 7 / b join / li 0.
|
||||
|
||||
cmpwi reads r3 and defines CR0, conditional branch consumes CR0; both li operations define argument r3 on disjoint paths; join tail consumes r3 plus callback index r4. All status operations are integer/branch class and do not touch memory. The callback guard reads the callback pointer and command slot, clears the slot and returns when pointer is null. Target and source guard graphs currently match.
|
||||
|
||||
The DAG difference is control dependence and block fallthrough, not latency. A real callback selection which prevents early constant-select folding may retain the target if/else layout. Ordinary if/ternary, switch-case rearrangements and pointer-input notification helpers were already tried; repeat none of those.
|
||||
|
||||
## kbdProcMod and KBDSetModState
|
||||
|
||||
Baselines 4/256 and 4/42, equal 1024/168-byte sizes. Both swaps come from the same inlined physical-modifier merge in KBDSetModState.
|
||||
|
||||
| Operation | Register dependencies | Memory dependencies | Latency class |
|
||||
| --- | --- | --- | --- |
|
||||
| lis/addi base | defines table base | address only | integer ALU |
|
||||
| add address | reads base and channel offset, defines address | address only | integer ALU |
|
||||
| lwz old,0x220(address) | reads address, defines old | reads channel modifier word | load |
|
||||
| rlwimi new,old,0,26,31 | reads old and masked new, writes new | none | integer rotate/insert |
|
||||
| stw new,0x220(address) | reads new and address | writes same modifier word | store |
|
||||
|
||||
Target address=r4, old=r5. Source address=r5, old=r4. The address remains live through the store and interferes with old. Both instruction sequences have the same order and dependency chain. The target needs a different coloring priority or coalescing graph, not instruction reordering. Historical captures identify the two values as unnamed temps, so named declaration permutations cannot change their priority. Trace the common setter and derive a construct which changes temp creation or introduces a useful merge move that disappears late.
|
||||
|
||||
## BS2StartGame
|
||||
|
||||
Baseline 5/393 differing, equal 1572-byte size. MMIO write at 0xCC003024.
|
||||
|
||||
| Operation | Register dependencies | Memory dependencies | Latency class |
|
||||
| --- | --- | --- | --- |
|
||||
| lis addr,0xCC00 | defines address base | address only | integer ALU |
|
||||
| li bits,2 | defines bits | none | integer ALU |
|
||||
| lwz old,0x3024(addr) | reads addr, defines old | MMIO read | load |
|
||||
| ori bits,bits,4 | reads/writes bits | none | integer ALU |
|
||||
| ori old,old,1 | reads/writes old | none | integer ALU |
|
||||
| or bits,old,bits | reads old and bits, writes bits | none | integer ALU |
|
||||
| stw bits,0x3024(addr) | reads bits and addr | MMIO write | store |
|
||||
|
||||
Target address=r4, old=r3; source address=r3, old=r4; bits=r0 in both. Same dependency DAG and physical interference, but opposite coloring order. Ordinary named pointer/value/bits declarations were already forwarded to unnamed temps. Trace the raw block and test only constructs predicted to change surviving temp priority or coalescing. Full inline rewrites which combine the two OR constants lose an instruction and are not a match.
|
||||
|
||||
## Measurements
|
||||
|
||||
|
||||
### address-clear-in-source-argument
|
||||
|
||||
A real memset call in the source argument should make evaluation of that argument precede destination materialization. This tests a call-induced DAG change, unlike prior separate getter/helper statements. Clear still occurs before copying and both addresses have no side effects.
|
||||
|
||||
Source /tmp/sol-tiny-address-clear-in-source-argument.cpp, object /tmp/sol-tiny-address-clear-in-source-argument.o.
|
||||
|
||||
- update_friendinfo__Q33ipl5scene11AddressEditFv: 2 differing, 38/38 instructions; size 152/152.
|
||||
- POOL IDENTICAL up to 57 (mine=57 base=57)
|
||||
|
||||
### modifier-aggregate-copy-store
|
||||
|
||||
Copy the actual four-byte modifier union into the channel word using memcpy. Unlike scalar-store helpers tried earlier, aggregate copy lowering can create its destination address after the old-word temp, then common it with the read address. Prediction: address priority moves above old-word priority without adding a runtime operation.
|
||||
|
||||
Source /tmp/sol-tiny-modifier-aggregate-copy-store.c, object /tmp/sol-tiny-modifier-aggregate-copy-store.o.
|
||||
|
||||
- kbd_led_handler: 3 differing, 25/25 instructions; size 100/100.
|
||||
- kbdProcMod: 58 differing, 261/256 instructions; size 1044/1024.
|
||||
- KBDSetModState: 24 differing, 48/42 instructions; size 192/168.
|
||||
- POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
### modifier-aggregate-copy-load
|
||||
|
||||
Use the aggregate copy for the actual old modifier word. This tests whether copy-source address propagation changes coalescing or temp identity before the shared physical-bit insertion. The interrupt interval, masks and scalar field layout remain identical.
|
||||
|
||||
Source /tmp/sol-tiny-modifier-aggregate-copy-load.c, object /tmp/sol-tiny-modifier-aggregate-copy-load.o.
|
||||
|
||||
- kbd_led_handler: 3 differing, 25/25 instructions; size 100/100.
|
||||
- kbdProcMod: 259 differing, 264/256 instructions; size 1056/1024.
|
||||
- KBDSetModState: 49 differing, 51/42 instructions; size 204/168.
|
||||
- POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
### led-predicate-control-dependence
|
||||
|
||||
Switch dispatch now consumes a comparison predicate rather than the raw callback status. Its case-FALSE branch should lower to success!=1 while the default is successful fallthrough. A temporary boolean comparison is expected to disappear late. This tests an extra control-dependence node; it is not a case-order permutation of the old raw-status switch.
|
||||
|
||||
Source /tmp/sol-tiny-led-predicate-control-dependence.c, object /tmp/sol-tiny-led-predicate-control-dependence.o.
|
||||
|
||||
- kbd_led_handler: 16 differing, 27/25 instructions; size 108/100.
|
||||
- kbdProcMod: 4 differing, 256/256 instructions; size 1024/1024.
|
||||
- KBDSetModState: 4 differing, 42/42 instructions; size 168/168.
|
||||
- POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
### Validated captures
|
||||
|
||||
Fresh setter capture `_mwdbg/runs/sol-tiny-set-base` has source SHA256 73a09baeb394c13a2ccc5a8cac873f166276678c3b6dfca7855f3aee511c5d3b and complete object SHA256 6a85c207eaac2f59a57f1c2b16f05861bf20a1ca1250449848ef0fa7353d06de, byte-identical to the current Ninja object. Prior `sol-kbd-proc-base` has the same source and object hashes, so its PCode is current evidence. Existing address capture `update_friendinfo__Q33ipl5scene11AddressEditFv-20261008-195401` likewise has the exact current source and whole-object bytes, independently compared this run.
|
||||
|
||||
regsim reproduces setter 23/23, proc 156/156 and address 16/16. Search over named-local numbering reproduces 0/2 desired address/old-word colors for both keyboard functions. Setter pre-allocation B8 has address r48 then old-word r49; r49 is colored first to r4, excluding r4 for r48, which gets r5. The address is live through the store, creating the r48/r49 edge. The masked destination r52 becomes r0; OSDisableInterrupts return is live in physical r3 for OSRestoreInterrupts. Proc has the corresponding address r181 / old-word r182. Both values are unnamed compiler temps, outside source declaration-order control.
|
||||
|
||||
Address backend-00 emits a dead return move from memset, reloads the global base, then emits addi r3 followed by addi r4. Backend-01 removes the return move and commons the global base across calls, but keeps the pair order. Backend-02, 03 and 04 retain that order. There is no register interference explanation for the scheduling swap; the initial argument-evaluation order already differs from retail. Call-in-source-argument trial lowers to the same final pair, rejecting that hypothesized source construct.
|
||||
|
||||
### address-memset-result-destination
|
||||
|
||||
Use memset's actual destination return value as the wcsncpy destination. This creates a real call-result edge rather than recomputing a separate address. Check whether MWCC replaces that return value with its known destination late enough to change argument preparation. No extra work or dummy value is introduced.
|
||||
|
||||
Source /tmp/sol-tiny-address-memset-result-destination.cpp, object /tmp/sol-tiny-address-memset-result-destination.o.
|
||||
|
||||
- update_friendinfo__Q33ipl5scene11AddressEditFv: 24 differing, 37/38 instructions; size 148/152.
|
||||
- POOL IDENTICAL up to 57 (mine=57 base=57)
|
||||
|
||||
### command-count-before-completion-reload-for-write
|
||||
|
||||
Isolate only the first partition-count read, then store completion before shifting the saved count. Unlike prior sol-bs2 local-count trials, retain the second DataToc/count reload for BS2NANDDivideWriteAsync, which the target has. This separates the read-to-store alias edge from the read-to-shift edge without removing the later four instructions.
|
||||
|
||||
Source /tmp/sol-tiny-command-count-before-completion-reload-for-write.c, object /tmp/sol-tiny-command-count-before-completion-reload-for-write.o.
|
||||
|
||||
- CheckBS2CommandStatus: 7 differing, 406/406 instructions; size 1624/1624.
|
||||
- BS2StartGame: 5 differing, 393/393 instructions; size 1572/1572.
|
||||
- POOL IDENTICAL up to 91 (mine=91 base=91)
|
||||
|
||||
### command-save-length-and-count-before-completion
|
||||
|
||||
Preserve the baseline volatile CacheLength read before the partition-count read, then store completion and calculate the new length. This explicitly preserves the memory-read order while removing the shift from the completion-store predecessor chain. The write branch still reloads its own count.
|
||||
|
||||
Source /tmp/sol-tiny-command-save-length-and-count-before-completion.c, object /tmp/sol-tiny-command-save-length-and-count-before-completion.o.
|
||||
|
||||
- CheckBS2CommandStatus: 6 differing, 406/406 instructions; size 1624/1624.
|
||||
- BS2StartGame: 5 differing, 393/393 instructions; size 1572/1572.
|
||||
- POOL IDENTICAL up to 91 (mine=91 base=91)
|
||||
|
||||
### modifier-typed-union-assignment-store
|
||||
|
||||
The prior aggregate memcpy trials retained actual calls and stack storage, so reject that lowering. A typed four-byte union assignment should use aggregate load/store lowering without memcpy, creating a separate store lvalue whose address can common with the read later. The view names the actual modifier representation, not raw offsets or unrelated storage.
|
||||
|
||||
Source /tmp/sol-tiny-modifier-typed-union-assignment-store.c, object /tmp/sol-tiny-modifier-typed-union-assignment-store.o.
|
||||
|
||||
- kbd_led_handler: 3 differing, 25/25 instructions; size 100/100.
|
||||
- kbdProcMod: 4 differing, 256/256 instructions; size 1024/1024.
|
||||
- KBDSetModState: 4 differing, 42/42 instructions; size 168/168.
|
||||
- POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
### command-toc-disjoint-alias-contract
|
||||
|
||||
A restrict-qualified read-only TOC view asserts the actual disjointness of TOC storage and cache flags. It directly tests the load-to-store alias-edge hypothesis. Unlike the prior plain const pointer trials this adds an alias contract; the write branch still reads the original pointer. Retain only if the compiler supports the keyword and source/object evidence justifies it.
|
||||
|
||||
Source /tmp/sol-tiny-command-toc-disjoint-alias-contract.c, object /tmp/sol-tiny-command-toc-disjoint-alias-contract.o.
|
||||
|
||||
Compile failed: ### mwcceppc.exe Compiler: # File: Z:\tmp\sol-tiny-command-toc-disjoint-alias-contract.c # -------------------------------------------------------------- # 1172: const DVDGameTOC * restrict toc; # Error: ^^^ # (10123) ';' expected # Too many errors printed, aborting program User break, cancelled...
|
||||
|
||||
### command-completion-typed-state-storage
|
||||
|
||||
Replace the scalar completion storage with a single-field typed command state, preserving its four-byte representation and all accesses. A TOC field read and command-state field write now have distinct aggregate types, directly testing type-based alias separation. This is one real state field, with no grouped unrelated objects or padding.
|
||||
|
||||
Source /tmp/sol-tiny-command-completion-typed-state-storage.c, object /tmp/sol-tiny-command-completion-typed-state-storage.o.
|
||||
|
||||
- CheckBS2CommandStatus: 2 differing, 406/406 instructions; size 1624/1624.
|
||||
- BS2StartGame: 5 differing, 393/393 instructions; size 1572/1572.
|
||||
- POOL IDENTICAL up to 91 (mine=91 base=91)
|
||||
|
||||
### start-control-word-bitfield-promotion
|
||||
|
||||
The baseline old DI word survives as named scalar r33, while address becomes later temp r196. Represent the actual MMIO word and its low enable bit as a union, so stack/aggregate promotion creates a later load temp. Keep the independent diBits two-step construction unchanged to preserve li 2 / ori 4 rather than folding constants into ori 5. This changes old-word provenance, not declaration numbering.
|
||||
|
||||
Source /tmp/sol-tiny-start-control-word-bitfield-promotion.c, object /tmp/sol-tiny-start-control-word-bitfield-promotion.o.
|
||||
|
||||
- CheckBS2CommandStatus: 2 differing, 406/406 instructions; size 1624/1624.
|
||||
- BS2StartGame: 7 differing, 393/393 instructions; size 1572/1572.
|
||||
- POOL IDENTICAL up to 91 (mine=91 base=91)
|
||||
|
||||
### start-control-word-complete-update
|
||||
|
||||
Update the actual control word with both enable and legacy bits before storing it. The first union trial created a promoted old-word temp that took r0, displacing the separate bits to r4. A final aggregate field update should allocate the final OR result after that old-word temp rather than before it, leaving final result/bits in r0 and the loaded word in r3.
|
||||
|
||||
Source /tmp/sol-tiny-start-control-word-complete-update.c, object /tmp/sol-tiny-start-control-word-complete-update.o.
|
||||
|
||||
- CheckBS2CommandStatus: 2 differing, 406/406 instructions; size 1624/1624.
|
||||
- BS2StartGame: 7 differing, 393/393 instructions; size 1572/1572.
|
||||
- POOL IDENTICAL up to 91 (mine=91 base=91)
|
||||
|
||||
### led-output-parameter-conditional-stores
|
||||
|
||||
Use an actual output-parameter error converter with success passed by value. Previous both-pointer helpers also took success by pointer. This shape keeps the raw condition register available but hides the constant result behind conditional memory stores until inlining/promotion, which may preserve target fallthrough and remove the stores late.
|
||||
|
||||
Source /tmp/sol-tiny-led-output-parameter-conditional-stores.c, object /tmp/sol-tiny-led-output-parameter-conditional-stores.o.
|
||||
|
||||
- kbd_led_handler: 23 differing, 23/25 instructions; size 92/100.
|
||||
- kbdProcMod: 4 differing, 256/256 instructions; size 1024/1024.
|
||||
- KBDSetModState: 4 differing, 42/42 instructions; size 168/168.
|
||||
- POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
### modifier-word-value-arguments
|
||||
|
||||
A real union-word merge takes both modifier values by value and returns the result. Prior helpers took a channel pointer and read the old word inside the helper. Here load/address provenance remains in the caller while aggregate parameter/return copies are introduced at the merge, testing a late coalescing change without pointer-read alias changes.
|
||||
|
||||
Source /tmp/sol-tiny-modifier-word-value-arguments.c, object /tmp/sol-tiny-modifier-word-value-arguments.o.
|
||||
|
||||
- kbd_led_handler: 3 differing, 25/25 instructions; size 100/100.
|
||||
- kbdProcMod: 4 differing, 256/256 instructions; size 1024/1024.
|
||||
- KBDSetModState: 4 differing, 42/42 instructions; size 168/168.
|
||||
- POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
### modifier-channel-field-union-representation
|
||||
|
||||
Model the actual channel modifier word as KBDModifierState at its declaration, preserving four-byte layout and scalar value access in every other function. Prior mod-channel-union trials changed only a local pointer, not the field type. Read the actual union object into oldState. This tests aggregate field lowering and alias metadata without extra storage.
|
||||
|
||||
Source /tmp/sol-tiny-modifier-channel-field-union-representation.c, object /tmp/sol-tiny-modifier-channel-field-union-representation.o.
|
||||
|
||||
- kbd_led_handler: 3 differing, 25/25 instructions; size 100/100.
|
||||
- kbdProcMod: 4 differing, 256/256 instructions; size 1024/1024.
|
||||
- KBDSetModState: 4 differing, 42/42 instructions; size 168/168.
|
||||
- POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
### modifier-direct-channel-physical-field
|
||||
|
||||
With the modifier representation in the real field, read physical bits directly into the requested union. The deleted oldState held a genuine copy that should be unnecessary. The field load may acquire a different temp identity than the baseline scalar-to-local-union copy; inspect the resulting address/word colors.
|
||||
|
||||
Source /tmp/sol-tiny-modifier-direct-channel-physical-field.c, object /tmp/sol-tiny-modifier-direct-channel-physical-field.o.
|
||||
|
||||
- kbd_led_handler: 3 differing, 25/25 instructions; size 100/100.
|
||||
- kbdProcMod: 47 differing, 253/256 instructions; size 1012/1024.
|
||||
- KBDSetModState: 7 differing, 42/42 instructions; size 168/168.
|
||||
- POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
### modifier-update-real-software-field
|
||||
|
||||
Assign the actual high software-modifier bitfield while leaving its low physical field intact under the same interrupt exclusion. It computes exactly the baseline 0xfc0 input mask plus old 0x3f bits. This tests whether target merge direction came from updating a declared field rather than merging two scalar representations.
|
||||
|
||||
Source /tmp/sol-tiny-modifier-update-real-software-field.c, object /tmp/sol-tiny-modifier-update-real-software-field.o.
|
||||
|
||||
- kbd_led_handler: 3 differing, 25/25 instructions; size 100/100.
|
||||
- kbdProcMod: 48 differing, 253/256 instructions; size 1012/1024.
|
||||
- KBDSetModState: 7 differing, 42/42 instructions; size 168/168.
|
||||
- POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
### address-clear-copy-output-helper
|
||||
|
||||
The direct memset-result trial preserved the returned destination and lost the required reload. Here a real clear-and-copy helper owns the source and record values while the call result supplies its destination. This combines a new actual return edge with the earlier helper boundary, testing whether the inliner late rematerializes the record name while preserving source-first evaluation.
|
||||
|
||||
Source /tmp/sol-tiny-address-clear-copy-output-helper.cpp, object /tmp/sol-tiny-address-clear-copy-output-helper.o.
|
||||
|
||||
- update_friendinfo__Q33ipl5scene11AddressEditFv: 24 differing, 37/38 instructions; size 148/152.
|
||||
- POOL IDENTICAL up to 57 (mine=57 base=57)
|
||||
|
||||
### start-two-control-word-bitfield-promotion
|
||||
|
||||
The old-word-only union trial moved old to r0 and left mask in r4. Promote both actual control words as the same real bitfield representation. The final OR reads old then mask, so mask promotion should create the latest input temp, coloring mask/result to r0, old to r3 and address to r4. Both unions contain only the related register word and its bits; no unrelated locals or dummy storage.
|
||||
|
||||
Source /tmp/sol-tiny-start-two-control-word-bitfield-promotion.c, object /tmp/sol-tiny-start-two-control-word-bitfield-promotion.o.
|
||||
|
||||
- CheckBS2CommandStatus: 2 differing, 406/406 instructions; size 1624/1624.
|
||||
- BS2StartGame: 5 differing, 393/393 instructions; size 1572/1572.
|
||||
- POOL IDENTICAL up to 91 (mine=91 base=91)
|
||||
|
||||
### command-readonly-toc-and-explicit-output-aliases
|
||||
|
||||
A real accounting helper takes a const TOC parameter plus two explicit output pointers. Pointer-to-const parameter provenance is different from a const cast at the load, and separate output parameters expose the read/store alias relation to the inliner. Unlike the previous begin-write helper, completion follows the length calculation and pending stays in the caller.
|
||||
|
||||
Source /tmp/sol-tiny-command-readonly-toc-and-explicit-output-aliases.c, object /tmp/sol-tiny-command-readonly-toc-and-explicit-output-aliases.o.
|
||||
|
||||
- CheckBS2CommandStatus: 9 differing, 406/406 instructions; size 1624/1624.
|
||||
- BS2StartGame: 5 differing, 393/393 instructions; size 1572/1572.
|
||||
- POOL IDENTICAL up to 91 (mine=91 base=91)
|
||||
|
||||
### led-output-parameter-switch-stores
|
||||
|
||||
The by-value condition/out-result helper folded the conditional into arithmetic. Keep conditional output memory stores but use switch lowering, whose constant stores survive early selection folding. Prediction: after inlining, the branch graph can keep successful fallthrough while promotion removes only memory operations. This is the output-only counterpart of the old both-pointer experiment.
|
||||
|
||||
Source /tmp/sol-tiny-led-output-parameter-switch-stores.c, object /tmp/sol-tiny-led-output-parameter-switch-stores.o.
|
||||
|
||||
- kbd_led_handler: 14 differing, 26/25 instructions; size 104/100.
|
||||
- kbdProcMod: 4 differing, 256/256 instructions; size 1024/1024.
|
||||
- KBDSetModState: 4 differing, 42/42 instructions; size 168/168.
|
||||
- POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
### start-control-read-before-mask-construction
|
||||
|
||||
Trace of old-word union shows final OR result can share either input, and the higher-numbered surviving input gets r0. With two unions, old-word promotion was later than mask promotion and took r0. Read/update the actual control word before constructing the independent mask, so promoted old temp precedes promoted mask temp. Prediction: mask/result r0, old r3, address r4, with the scheduler restoring the same parallel instruction order.
|
||||
|
||||
Source /tmp/sol-tiny-start-control-read-before-mask-construction.c, object /tmp/sol-tiny-start-control-read-before-mask-construction.o.
|
||||
|
||||
- CheckBS2CommandStatus: 2 differing, 406/406 instructions; size 1624/1624.
|
||||
- BS2StartGame: 0 differing, 393/393 instructions; size 1572/1572.
|
||||
- POOL IDENTICAL up to 91 (mine=91 base=91)
|
||||
|
||||
### modifier-named-physical-extraction-before-insert
|
||||
|
||||
Extract the real physical six-bit state into a scalar using load then mask. A twice-assigned scalar survives forwarding as a named node, unlike the union old-word temp. The explicit mask is redundant at the later six-bit insertion and should disappear, leaving address as a higher-numbered temp than the old word. This is a phase-order test derived from the successful DI trace, not a declaration permutation.
|
||||
|
||||
Source /tmp/sol-tiny-modifier-named-physical-extraction-before-insert.c, object /tmp/sol-tiny-modifier-named-physical-extraction-before-insert.o.
|
||||
|
||||
- kbd_led_handler: 3 differing, 25/25 instructions; size 100/100.
|
||||
- kbdProcMod: 4 differing, 256/256 instructions; size 1024/1024.
|
||||
- KBDSetModState: 4 differing, 42/42 instructions; size 168/168.
|
||||
- POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
### modifier-physical-byte-promotion
|
||||
|
||||
Represent the six physical bits in an unsigned byte, consistent with HID modifier storage. Narrowing the loaded word may survive until late bitfield insertion and then disappear because only six bits are consumed. This tests typed promotion/coalescing rather than changing the masks or caller validation.
|
||||
|
||||
Source /tmp/sol-tiny-modifier-physical-byte-promotion.c, object /tmp/sol-tiny-modifier-physical-byte-promotion.o.
|
||||
|
||||
- kbd_led_handler: 3 differing, 25/25 instructions; size 100/100.
|
||||
- kbdProcMod: 4 differing, 256/256 instructions; size 1024/1024.
|
||||
- KBDSetModState: 4 differing, 42/42 instructions; size 168/168.
|
||||
- POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
### modifier-physical-byte-read-helper
|
||||
|
||||
A real const-channel physical-modifier accessor returns only the six HID bits as a byte. Earlier read helpers returned the full u32 word or a full union. The smaller typed return plus const parameter tests a different inline result/coalescing boundary while preserving the target full-word read and final low-bit insertion.
|
||||
|
||||
Source /tmp/sol-tiny-modifier-physical-byte-read-helper.c, object /tmp/sol-tiny-modifier-physical-byte-read-helper.o.
|
||||
|
||||
- kbd_led_handler: 3 differing, 25/25 instructions; size 100/100.
|
||||
- kbdProcMod: 4 differing, 256/256 instructions; size 1024/1024.
|
||||
- KBDSetModState: 7 differing, 42/42 instructions; size 168/168.
|
||||
- POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
|
||||
### start-control-word-bit-position-names
|
||||
|
||||
Source review: the target proves three bit positions, but not the semantic names legacyReset/legacyControl/enabled. Name the actual bit positions explicitly instead of claiming undocumented hardware meanings. This only changes field names; retain the same typed raw register word, width and update order. Expected code identity with the exact candidate.
|
||||
|
||||
Source /tmp/sol-tiny-start-control-word-bit-position-names.c, object /tmp/sol-tiny-start-control-word-bit-position-names.o.
|
||||
|
||||
- CheckBS2CommandStatus: 2 differing, 406/406 instructions; size 1624/1624.
|
||||
- BS2StartGame: 0 differing, 393/393 instructions; size 1572/1572.
|
||||
- POOL IDENTICAL up to 91 (mine=91 base=91)
|
||||
|
||||
## Backend conclusions and retained result
|
||||
|
||||
### BS2StartGame: exact
|
||||
|
||||
Fresh `_mwdbg/runs/sol-tiny-start-exact` confirms the predicted promotion order. Initial B113 reads the actual control word into the diValue aggregate, updates bit 0, then constructs diBits and updates bit 2. Before allocation those stores/loads promote to address r194, old-word r197, mask r200 and final OR r203. The final result can share either input. Coloring gives mask/result r0, old word r3 and address r4. regsim reproduces 173/173 virtual registers and all 3/3 requested colors. Backend-02, 03 and 04 retain exactly the target seven-operation MMIO sequence. The tracer whole-object bytes equal the normal Ninja object.
|
||||
|
||||
The raw u32 and 32-bit bitfield overlay describe the same DI control register. Both locals have that representation; they do not group unrelated state. Reading/updating the word precedes constructing the independent mask. For every input word the result remains `(old | 1) | (2 | 4)`. No extra memory access, call, storage or instruction survives. Source review replaced speculative hardware meanings with bit-position names. That rename leaves the complete object identical. The retained diff touches only this block, adds no code comments, and does not alter configure.py.
|
||||
|
||||
Normal Ninja verification after source cleanup: 1572/1572 bytes, ctxdiff 393/393 instructions with diffs 0, and pool 91/91 identical. Exact-name objdiff is 100.0%. BS2Mach rises from 26/29 to 27/29 exact functions and code 6024/16980 to 7596/16980. Every other function score in this unit is unchanged. The unit still has two non-exact functions, so it remains NonMatching; this is a function match, not safe whole-unit linking.
|
||||
|
||||
### CheckBS2CommandStatus: unresolved
|
||||
|
||||
Fresh `_mwdbg/runs/sol-tiny-command-base` reproduces 126/126 GPR allocations. B44 already puts the count shift before the completion store before allocation; backend-02/03/04 preserve that order. This eliminates register coloring as the cause. The count load has PCode flags 0x100000000022, completion store 0x100000000004, and volatile length/pending operations 0x100000000082/84. These are operation flags, not captured scheduler dependency edges. The tracer does not prove a count-load/completion-store alias edge, so that remains an inference rather than a recovered target DAG.
|
||||
|
||||
Preserving both target count loads while exposing the first read before the completion store did not move the store. Const input/output provenance did not do so either. The restrict alias contract is unsupported by this compiler. The single-field completion wrapper was diagnostic only and is rejected by the no-carrier rule. Best remains the source baseline, 2/406 differing with equal size. No speculative completion-storage or qualifier change is retained.
|
||||
|
||||
### update_friendinfo: unresolved
|
||||
|
||||
The source-first argument preparation in retail is absent in the initial source PCode, not introduced by physical-register allocation. The two independent addi operations have the same ALU latency and no memory effects; both consume saved bases and feed the same call. The compiler emits destination first before scheduling. A real memset return edge removes the required destination addi instead of delaying it, producing unequal size. Moving memset into the source argument or a genuine clear/copy helper does not produce the required two-argument preparation order. Best remains 2/38 differing, equal size. The source file is unchanged.
|
||||
|
||||
### kbd_led_handler: unresolved
|
||||
|
||||
Fresh `_mwdbg/runs/sol-tiny-led-base` confirms initial B2 tests success==1 and branches to successful B5; B3 supplies error 7. The same CFG reaches backend-01/02/03/04, with the final callback call becoming a tail branch. The target reverses this fallthrough, so the difference is control dependence/block placement rather than register or memory latency. A by-value status/output-pointer converter folds to arithmetic and loses two required instructions. Switch output stores retain a spare dispatch branch and add one instruction. Predicate-switch lowering preserves extra predicate materialization. None has equal-size improvement. Best remains 3/25 differing; source unchanged.
|
||||
|
||||
### kbdProcMod and KBDSetModState: unresolved
|
||||
|
||||
Current validated captures reproduce both allocations. Their load-address/old-word values are unnamed temps with a real interference edge because the address must survive until the store. Source declaration permutations cannot change their priority. Real union field copies, parameter/return copies and byte physical-state promotion either forward to the same address/word temps or retain extra operations. Direct field updates reverse the bit insertion direction; the proc then loses three required instructions. Unlike the DI result, the attempted real six-bit extraction mask disappears before it can preserve a named old-word value. No tested normal data representation makes the store address a later surviving temp than the old word while preserving the required operations. Best stays 4/256 and 4/42 differing, equal sizes. Both source functions remain at baseline.
|
||||
|
||||
## Private artifacts and scope
|
||||
|
||||
Directed trials are in `/tmp/sol-tiny-*.c`, `.cpp`, `.o` and the measurement log above. Tracer output must live under its own `_mwdbg/runs` root; it is tool-generated evidence outside every source worktree. Reused historical captures were accepted only after matching current source and complete object hashes. No worker source edits, rebase, push, PR or merge occurred outside the assigned worktree.
|
||||
|
||||
Private best diffs are `/mnt/drive2/projects/wii-ipl-workers/_luna-runs/best/sol-tiny.BS2Mach.diff`, `sol-tiny.iplAddressEdit.diff` and `sol-tiny.kbd_lib.diff`. BS2Mach archives the retained exact function within the still-partial unit. AddressEdit and kbd_lib have empty diffs because their best non-exact version is unchanged baseline. CheckBS2CommandStatus likewise has no retained non-exact diff.
|
||||
|
||||
## Final validation
|
||||
|
||||
Requested command: `python3 /mnt/drive2/projects/wii-ipl-workers/_restore0928-tools/gate.py src/BS2/BS2Mach src/scene/address/iplAddressEdit libs/RVL_SDK/src/kbd/kbd_lib --quick`. Exit 0, GATE PASS. Full 43U build passed; DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d. Pools identical in all three units; every owned data section remains 100%. Regression count 0, net forbidden-pattern count 0, readability warning count 0. Raw output is `/tmp/sol-tiny-gate.log`. The quick gate was used exactly as requested; it did not remove the existing build tree.
|
||||
|
||||
Live report regenerated with `ninja progress build/43U/report.json`. Comparing every current function score to the initial report finds exactly one change: BS2StartGame becomes 100.0%; all other scores are unchanged. Final exact functions are BS2Mach 27/29, AddressEdit 91/94, kbd_lib 18/21. Final ctxdiff measurements confirm CheckBS2CommandStatus 2/406, update_friendinfo 2/38, kbd_led_handler 3/25, kbdProcMod 4/256 and KBDSetModState 4/42, all equal size. BS2StartGame alone is newly exact at 0/393. Linking is unchanged because no assigned unit is fully exact.
|
||||
|
||||
Only `src/BS2/BS2Mach.c` and this attempts log are committed. Existing untracked rx4/rx59/rx70 files are preserved. No push, PR, merge or rebase.
|
||||
429
tools/decomp-assist/sol-x14.attempts.md
Normal file
429
tools/decomp-assist/sol-x14.attempts.md
Normal file
@@ -0,0 +1,429 @@
|
||||
# sol-x14 SDMemory attempts
|
||||
|
||||
Baseline branch agent/w1008/w0929-fix-board-y. Only iplSDMemory.cpp and this log are owned. Existing untracked rx61-work and rx69 log are untouched.
|
||||
|
||||
Initial object already built. Baseline create 175/1064 differences, equal size; drawTransferTitles 371/451 differences, 438/451 instructions. Pool identical. Scoped IRO 1 authorized by task and levers 26/30.
|
||||
|
||||
- create swap cached count/saveData declarations: 5 differing, 1064/1064 instructions; other-function drops [].
|
||||
|
||||
- create cached count declared at initialization: 5 differing, 1064/1064 instructions; other-function drops [].
|
||||
|
||||
- create count initialized before saveData accessor: 5 differing, 1064/1064 instructions; other-function drops [].
|
||||
|
||||
- create postfix count increment: 5 differing, 1064/1064 instructions; other-function drops [].
|
||||
|
||||
- draw scoped IRO 1: 287 differing, 451/451 instructions; other-function drops [].
|
||||
|
||||
- draw scoped IRO 0: 287 differing, 451/451 instructions; other-function drops [].
|
||||
|
||||
- create cached-title pointer named at first use: 543 differing, 1065/1064 instructions; other-function drops [].
|
||||
|
||||
- create loop result reused as actual title count: 5 differing, 1064/1064 instructions; other-function drops [].
|
||||
|
||||
- create prefix loop index: 5 differing, 1064/1064 instructions; other-function drops [].
|
||||
|
||||
- create test title entry as boolean: 5 differing, 1064/1064 instructions; other-function drops [].
|
||||
|
||||
- create scoped saveData with count kept root: 5 differing, 1064/1064 instructions; other-function drops [].
|
||||
|
||||
- create count-index single for expression: 14 differing, 1064/1064 instructions; other-function drops [].
|
||||
|
||||
- create cache walker actual pointer loop: 541 differing, 1063/1064 instructions; other-function drops [].
|
||||
|
||||
- create actual count helper: 0 differing, 1064/1064 instructions; other-function drops [].
|
||||
|
||||
- create exact: helper countCachedTitles plus scoped IRO 1. Last five differences were cachedTitleCount r49 allocated r6 instead of r5, and System save-data pointer r136 r5 instead of r6. mwdbg replay 727/727. Corrected regsim excluding compiler @ temporaries reaches 0/2 wanted registers with 3000 declaration trials; structural helper fixes both. Pool 90/90 identical, ctxdiff 1064/1064 and diffs 0. Exact-name objdiff 100.0%; unit 64/66 -> 65/66, matched code 14812 -> 19068 / 20872, data 3344/3344. Every other function unchanged. Capture /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/create__Q33ipl5scene8SDMemoryFPQ23EGG4HeapPQ33ipl4nand10LayoutFilePQ33ipl5scene15SDChannelSelect-20261008-215212.
|
||||
|
||||
- draw newline initial guard and for: 388 differing, 453/451 instructions; other-function drops [].
|
||||
|
||||
- draw line loop guarded counted for: 287 differing, 451/451 instructions; other-function drops [].
|
||||
|
||||
- draw remove unused color copies: 381 differing, 443/451 instructions; other-function drops [].
|
||||
|
||||
- draw ceil double converted directly to s32: 357 differing, 450/451 instructions; other-function drops [].
|
||||
|
||||
- draw target loop shape and only used color copies: 390 differing, 445/451 instructions; other-function drops [].
|
||||
|
||||
- draw all real scalar declarations forward IRO1: 290 differing, 451/451 instructions; other-function drops [].
|
||||
|
||||
- draw all real scalar declarations reverse IRO1: 285 differing, 451/451 instructions; other-function drops [].
|
||||
|
||||
- draw reverse declarations with initial newline guard IRO1: 386 differing, 453/451 instructions; other-function drops [].
|
||||
|
||||
- draw reverse declarations with initial newline guard IRO0: 386 differing, 453/451 instructions; other-function drops [].
|
||||
|
||||
- draw guard repeated while IRO0: 388 differing, 453/451 instructions; other-function drops [].
|
||||
|
||||
- draw prior best shape replay with exact create IRO0: 263 differing, 451/451 instructions; other-function drops [('__ne__Q24nw4r2utFQ44nw4r2ut28LinkList<Q34nw4r3lyt4Pane,4>8IteratorQ44nw4r2ut28LinkList<Q34nw4r3lyt4Pane,4>8Iterator', (0, 6, 6), (6, 8, 6))].
|
||||
|
||||
- draw prior helper shape scoped IRO1: 263 differing, 451/451 instructions; other-function drops [('__ne__Q24nw4r2utFQ44nw4r2ut28LinkList<Q34nw4r3lyt4Pane,4>8IteratorQ44nw4r2ut28LinkList<Q34nw4r3lyt4Pane,4>8Iterator', (0, 6, 6), (6, 8, 6))].
|
||||
|
||||
- draw prior helper shape initial newline guard: 391 differing, 453/451 instructions; other-function drops [('__ne__Q24nw4r2utFQ44nw4r2ut28LinkList<Q34nw4r3lyt4Pane,4>8IteratorQ44nw4r2ut28LinkList<Q34nw4r3lyt4Pane,4>8Iterator', (0, 6, 6), (6, 8, 6))].
|
||||
|
||||
- draw one child iterator reused for three panes: 287 differing, 451/451 instructions; other-function drops [].
|
||||
|
||||
- draw guarded newline do while: 392 differing, 452/451 instructions; other-function drops [].
|
||||
|
||||
- draw totalLines compared to zero with existing do loop: 391 differing, 450/451 instructions; other-function drops [].
|
||||
|
||||
- draw full line for without separate guard: 391 differing, 450/451 instructions; other-function drops [].
|
||||
|
||||
- draw alpha loops explicit for: 287 differing, 451/451 instructions; other-function drops [].
|
||||
|
||||
- draw VEC3 copy initialization: 436 differing, 452/451 instructions; other-function drops [].
|
||||
|
||||
- draw increment matched nand title before color setup: 282 differing, 451/451 instructions; other-function drops [].
|
||||
|
||||
- draw real color copies named as call arguments: 380 differing, 447/451 instructions; other-function drops [].
|
||||
|
||||
- draw children alpha helper defined after caller: 263 differing, 451/451 instructions; other-function drops [].
|
||||
|
||||
- draw children alpha helper after caller nonconst alpha: 263 differing, 451/451 instructions; other-function drops [].
|
||||
|
||||
- draw alpha helper after caller sequential confirmation: 263 differing, 451/451 instructions; other-function drops [].
|
||||
|
||||
- draw alpha helper after caller sequential confirmation: 263 differing, 451/451 instructions; other-function drops [].
|
||||
|
||||
- draw real newline counter helper: 263 differing, 451/451 instructions; other-function drops [].
|
||||
|
||||
- draw newline counter helper guarded while: 391 differing, 453/451 instructions; other-function drops [].
|
||||
|
||||
- draw line count helper computes total lines: 263 differing, 451/451 instructions; other-function drops [].
|
||||
|
||||
- draw original cached count-loop delimiter: 371 differing, 454/451 instructions; other-function drops [].
|
||||
|
||||
- draw original cached draw-loop delimiter and pre-guard index: 393 differing, 452/451 instructions; other-function drops [].
|
||||
|
||||
- draw original both real delimiters and target loop entry: 331 differing, 455/451 instructions; other-function drops [].
|
||||
|
||||
- draw original only pre-guard index/total positive loop: 287 differing, 451/451 instructions; other-function drops [].
|
||||
|
||||
- draw helper cached count-loop delimiter: 370 differing, 454/451 instructions; other-function drops [].
|
||||
|
||||
- draw helper cached draw-loop delimiter and pre-guard index: 392 differing, 452/451 instructions; other-function drops [].
|
||||
|
||||
- draw helper both real delimiters and target loop entry: 324 differing, 455/451 instructions; other-function drops [].
|
||||
|
||||
- draw helper only pre-guard index/total positive loop: 263 differing, 451/451 instructions; other-function drops [].
|
||||
|
||||
- draw named gradient colors three: 279 differing, 451/451 instructions; other-function drops [].
|
||||
|
||||
- draw named gradient colors direct: 279 differing, 451/451 instructions; other-function drops [].
|
||||
|
||||
- draw named gradient colors base-args: 263 differing, 451/451 instructions; other-function drops [].
|
||||
|
||||
- draw named gradient colors copy-init: 279 differing, 451/451 instructions; other-function drops [].
|
||||
|
||||
- draw named gradient colors two-named: 381 differing, 443/451 instructions; other-function drops [].
|
||||
|
||||
- draw solid-color helper reference: 379 differing, 431/451 instructions; other-function drops [].
|
||||
|
||||
- draw solid-color helper value: 378 differing, 439/451 instructions; other-function drops [].
|
||||
|
||||
- draw solid-color helper pointer: 379 differing, 431/451 instructions; other-function drops [].
|
||||
|
||||
- draw solid-color helper reference and delimiters: 311 differing, 435/451 instructions; other-function drops [].
|
||||
|
||||
- draw solid-color helper value and delimiters: 314 differing, 443/451 instructions; other-function drops [].
|
||||
|
||||
- draw solid-color helper pointer and delimiters: 311 differing, 435/451 instructions; other-function drops [].
|
||||
|
||||
- Newline-helper forward-declaration trials initially failed before includes; moved the declaration into ipl::scene and compiled the corrected three variants recorded above.
|
||||
- draw real-color call-argument trial and alpha-helper declaration trial briefly overlapped; their first outputs are advisory. The alpha helper after caller was recompiled sequentially and confirmed 263 differing with no other-function changes.
|
||||
|
||||
## Source search
|
||||
|
||||
180 seconds, seed 14, 128 source mutation trials from the private 263-difference candidate. Full mutation records retained in /tmp/sol-x14-search14/trials.jsonl; search output /tmp/sol-x14-search14.log. Search improvements were fuzzy only and remain private. Each trial below lists draw instruction count and objdiff score; the source mutation follows.
|
||||
|
||||
- Search trial 1: compile failed; --- | +++ | @@ -147 +147 @@ | - ++footerChild; | + footerChild = footerChild + 1; |
|
||||
|
||||
- Search trial 2: 451 instructions, objdiff 92.736145; --- | +++ | @@ -15 +15 @@ | - s32 totalLines; | + u32 totalLines; |
|
||||
|
||||
- Search trial 3: 451 instructions, objdiff 92.85809; --- | +++ | @@ -5,0 +6 @@ | + nw4r::lyt::TextBox* titleText; | @@ -7 +7,0 @@ | - nw4r::lyt::TextBox* titleText; |
|
||||
|
||||
- Search trial 4: 451 instructions, objdiff 92.85809; --- | +++ | @@ -3,0 +4 @@ | + f32 rowTop; | @@ -5 +5,0 @@ | - f32 rowTop; |
|
||||
|
||||
- Search trial 5: 451 instructions, objdiff 92.85809; --- | +++ | @@ -105 +105 @@ | - ++nandTitleIndex; | + nandTitleIndex++; |
|
||||
|
||||
- Search trial 6: 451 instructions, objdiff 92.80266; --- | +++ | @@ -9,0 +10 @@ | + f32 backgroundOffset; | @@ -11 +11,0 @@ | - f32 backgroundOffset; |
|
||||
|
||||
- Search trial 7: 451 instructions, objdiff 92.80266; --- | +++ | @@ -21,0 +22 @@ | + u8 alpha; | @@ -23 +23,0 @@ | - u8 alpha; |
|
||||
|
||||
- Search trial 8: 451 instructions, objdiff 92.80266; --- | +++ | @@ -82 +82 @@ | - messageOffset -= bodyHeight; | + messageOffset = messageOffset - bodyHeight; |
|
||||
|
||||
- Search trial 9: 451 instructions, objdiff 92.80266; --- | +++ | @@ -11,0 +12 @@ | + const wchar_t* lineEnd; | @@ -13 +13,0 @@ | - const wchar_t* lineEnd; |
|
||||
|
||||
- Search trial 10: 451 instructions, objdiff 92.80266; --- | +++ | @@ -4,0 +5 @@ | + nw4r::lyt::TextBox* titleText; | @@ -6 +6,0 @@ | - nw4r::lyt::TextBox* titleText; |
|
||||
|
||||
- Search trial 11: 451 instructions, objdiff 92.691795; --- | +++ | @@ -14 +14 @@ | - s32 lineIndex; | + unsigned int lineIndex; |
|
||||
|
||||
- Search trial 12: 451 instructions, objdiff 92.691795; --- | +++ | @@ -52 +52 @@ | - while (newline != NULL) { | + while (NULL != newline) { |
|
||||
|
||||
- Search trial 13: 451 instructions, objdiff 92.691795; --- | +++ | @@ -6,0 +7 @@ | + f32 rowHeight; | @@ -8 +8,0 @@ | - f32 rowHeight; |
|
||||
|
||||
- Search trial 14: 451 instructions, objdiff 92.691795; --- | +++ | @@ -83 +83 @@ | - ++lineIndex; | + lineIndex += 1; |
|
||||
|
||||
- Search trial 15: 451 instructions, objdiff 92.691795; --- | +++ | @@ -16,0 +17 @@ | + const wchar_t* newline; | @@ -18 +18,0 @@ | - const wchar_t* newline; |
|
||||
|
||||
- Search trial 16: 451 instructions, objdiff 92.691795; --- | +++ | @@ -6,0 +7 @@ | + u32 nandTitleIndex; | @@ -8 +8,0 @@ | - u32 nandTitleIndex; |
|
||||
|
||||
- Search trial 17: 451 instructions, objdiff 92.691795; --- | +++ | @@ -21,0 +22 @@ | + f32 messageOffset; | @@ -23 +23,0 @@ | - f32 messageOffset; |
|
||||
|
||||
- Search trial 18: 451 instructions, objdiff 92.691795; --- | +++ | @@ -7 +7 @@ | - u32 nandTitleIndex; | + int nandTitleIndex; |
|
||||
|
||||
- Search trial 19: 451 instructions, objdiff 92.691795; --- | +++ | @@ -147 +147 @@ | - ++footerChild; | + footerChild++; |
|
||||
|
||||
- Search trial 20: compile failed; --- | +++ | @@ -147 +147 @@ | - footerChild++; | + footerChild += 1; |
|
||||
|
||||
- Search trial 21: 451 instructions, objdiff 92.691795; --- | +++ | @@ -19,0 +20 @@ | + f32 bodyHeight; | @@ -21 +21,0 @@ | - f32 bodyHeight; |
|
||||
|
||||
- Search trial 22: 451 instructions, objdiff 92.691795; --- | +++ | @@ -147 +147 @@ | - footerChild++; | + ++footerChild; |
|
||||
|
||||
- Search trial 23: 451 instructions, objdiff 92.691795; --- | +++ | @@ -15 +15 @@ | - s32 totalLines; | + u32 totalLines; |
|
||||
|
||||
- Search trial 24: 451 instructions, objdiff 92.68071; --- | +++ | @@ -124 +124 @@ | - rowY = bodyY + backgroundOffset; | + rowY = backgroundOffset + bodyY; |
|
||||
|
||||
- Search trial 25: 451 instructions, objdiff 92.68071; --- | +++ | @@ -52,0 +53 @@ | + newline = wcsstr(newline + 1, L"\n"); | @@ -54 +54,0 @@ | - newline = wcsstr(newline + 1, L"\n"); |
|
||||
|
||||
- Search trial 26: 451 instructions, objdiff 92.68071; --- | +++ | @@ -7,0 +8 @@ | + nw4r::lyt::Pane* titleSizePane; | @@ -9 +9,0 @@ | - nw4r::lyt::Pane* titleSizePane; |
|
||||
|
||||
- Search trial 27: compile failed; --- | +++ | @@ -147 +147 @@ | - ++footerChild; | + footerChild = footerChild + 1; |
|
||||
|
||||
- Search trial 28: 451 instructions, objdiff 92.68071; --- | +++ | @@ -82 +82 @@ | - messageOffset = messageOffset - bodyHeight; | + messageOffset -= bodyHeight; |
|
||||
|
||||
- Search trial 29: 451 instructions, objdiff 92.68071; --- | +++ | @@ -105 +105 @@ | - nandTitleIndex++; | + nandTitleIndex += 1; |
|
||||
|
||||
- Search trial 30: 451 instructions, objdiff 92.68071; --- | +++ | @@ -82 +82 @@ | - messageOffset -= bodyHeight; | + messageOffset = messageOffset - bodyHeight; |
|
||||
|
||||
- Search trial 31: 451 instructions, objdiff 92.691795; --- | +++ | @@ -88,0 +89 @@ | + titleOffset = 79.5f + messageOffset; | @@ -90 +90,0 @@ | - titleOffset = 79.5f + messageOffset; |
|
||||
|
||||
- Search trial 32: compile failed; --- | +++ | @@ -147 +147 @@ | - ++footerChild; | + footerChild += 1; |
|
||||
|
||||
- Search trial 33: 451 instructions, objdiff 92.691795; --- | +++ | @@ -19 +19 @@ | - s32 lineCount; | + unsigned int lineCount; |
|
||||
|
||||
- Search trial 34: 451 instructions, objdiff 92.691795; --- | +++ | @@ -7 +7 @@ | - int nandTitleIndex; | + u32 nandTitleIndex; |
|
||||
|
||||
- Search trial 35: 451 instructions, objdiff 92.691795; --- | +++ | @@ -72 +72 @@ | - messageLine = lineEnd + 1; | + messageLine = 1 + lineEnd; |
|
||||
|
||||
- Search trial 36: 451 instructions, objdiff 92.691795; --- | +++ | @@ -13 +13 @@ | - u32 lineLength; | + s32 lineLength; |
|
||||
|
||||
- Search trial 37: 451 instructions, objdiff 92.691795; --- | +++ | @@ -13 +13 @@ | - s32 lineLength; | + int lineLength; |
|
||||
|
||||
- Search trial 38: 451 instructions, objdiff 92.691795; --- | +++ | @@ -147 +147 @@ | - ++footerChild; | + footerChild++; |
|
||||
|
||||
- Search trial 39: 451 instructions, objdiff 92.68071; --- | +++ | @@ -88,0 +89 @@ | + backgroundOffset = 40.0f + messageOffset; | @@ -90 +90,0 @@ | - backgroundOffset = 40.0f + messageOffset; |
|
||||
|
||||
- Search trial 40: 451 instructions, objdiff 92.68071; --- | +++ | @@ -15 +15 @@ | - u32 totalLines; | + unsigned int totalLines; |
|
||||
|
||||
- Search trial 41: 451 instructions, objdiff 92.68071; --- | +++ | @@ -139 +139 @@ | - titleOffset -= rowHeight * static_cast<f32>(visibleRows); | + titleOffset = titleOffset - (rowHeight * static_cast<f32>(visibleRows)); |
|
||||
|
||||
- Search trial 42: 451 instructions, objdiff 92.68071; --- | +++ | @@ -131 +131 @@ | - backgroundOffset -= rowHeight; | + backgroundOffset = backgroundOffset - rowHeight; |
|
||||
|
||||
- Search trial 43: compile failed; --- | +++ | @@ -43 +43 @@ | - ++child; | + child = child + 1; |
|
||||
|
||||
- Search trial 44: 451 instructions, objdiff 92.68071; --- | +++ | @@ -7 +7 @@ | - u32 nandTitleIndex; | + int nandTitleIndex; |
|
||||
|
||||
- Search trial 45: 451 instructions, objdiff 92.68071; --- | +++ | @@ -52 +52 @@ | - while (NULL != newline) { | + while (newline != NULL) { |
|
||||
|
||||
- Search trial 46: compile failed; --- | +++ | @@ -43 +43 @@ | - ++child; | + child = child + 1; |
|
||||
|
||||
- Search trial 47: 451 instructions, objdiff 92.68071; --- | +++ | @@ -90 +90 @@ | - titleOffset = 79.5f + messageOffset; | + titleOffset = messageOffset + 79.5f; |
|
||||
|
||||
- Search trial 48: 451 instructions, objdiff 92.691795; --- | +++ | @@ -124 +124 @@ | - rowY = backgroundOffset + bodyY; | + rowY = bodyY + backgroundOffset; |
|
||||
|
||||
- Search trial 49: 451 instructions, objdiff 92.691795; --- | +++ | @@ -52 +52 @@ | - while (newline != NULL) { | + while (NULL != newline) { |
|
||||
|
||||
- Search trial 50: 451 instructions, objdiff 92.691795; --- | +++ | @@ -90 +90 @@ | - titleOffset = messageOffset + 79.5f; | + titleOffset = 79.5f + messageOffset; |
|
||||
|
||||
- Search trial 51: 451 instructions, objdiff 92.691795; --- | +++ | @@ -147 +147 @@ | - footerChild++; | + ++footerChild; |
|
||||
|
||||
- Search trial 52: 451 instructions, objdiff 92.691795; --- | +++ | @@ -7,0 +8 @@ | + f32 rowHeight; | @@ -9 +9,0 @@ | - f32 rowHeight; |
|
||||
|
||||
- Search trial 53: 451 instructions, objdiff 92.691795; --- | +++ | @@ -131 +131 @@ | - backgroundOffset = backgroundOffset - rowHeight; | + backgroundOffset -= rowHeight; |
|
||||
|
||||
- Search trial 54: 451 instructions, objdiff 92.691795; --- | +++ | @@ -83 +83 @@ | - lineIndex += 1; | + lineIndex++; |
|
||||
|
||||
- Search trial 55: 451 instructions, objdiff 92.691795; --- | +++ | @@ -60 +60 @@ | - totalLines = lineCount + 1; | + totalLines = 1 + lineCount; |
|
||||
|
||||
- Search trial 56: 451 instructions, objdiff 92.691795; --- | +++ | @@ -43 +43 @@ | - ++child; | + child++; |
|
||||
|
||||
- Search trial 57: 451 instructions, objdiff 92.691795; --- | +++ | @@ -142 +142 @@ | - backgroundOffset += rowHeight; | + backgroundOffset = backgroundOffset + rowHeight; |
|
||||
|
||||
- Search trial 58: 451 instructions, objdiff 92.691795; --- | +++ | @@ -21,0 +22 @@ | + u8 alpha; | @@ -23 +23,0 @@ | - u8 alpha; |
|
||||
|
||||
- Search trial 59: compile failed; --- | +++ | @@ -147 +147 @@ | - ++footerChild; | + footerChild += 1; |
|
||||
|
||||
- Search trial 60: 451 instructions, objdiff 92.691795; --- | +++ | @@ -54 +54 @@ | - ++lineCount; | + lineCount = lineCount + 1; |
|
||||
|
||||
- Search trial 61: 451 instructions, objdiff 92.68071; --- | +++ | @@ -124 +124 @@ | - rowY = bodyY + backgroundOffset; | + rowY = backgroundOffset + bodyY; |
|
||||
|
||||
- Search trial 62: 451 instructions, objdiff 92.68071; --- | +++ | @@ -1,0 +2 @@ | + f32 rowY; | @@ -3 +3,0 @@ | - f32 rowY; |
|
||||
|
||||
- Search trial 63: 451 instructions, objdiff 92.68071; --- | +++ | @@ -2,0 +3 @@ | + f32 rowTop; | @@ -4 +4,0 @@ | - f32 rowTop; |
|
||||
|
||||
- Search trial 64: 451 instructions, objdiff 92.691795; --- | +++ | @@ -142 +142 @@ | - backgroundOffset = backgroundOffset + rowHeight; | + backgroundOffset = rowHeight + backgroundOffset; |
|
||||
|
||||
- Search trial 65: 451 instructions, objdiff 92.691795; --- | +++ | @@ -15,0 +16 @@ | + const wchar_t* newline; | @@ -17 +17,0 @@ | - const wchar_t* newline; |
|
||||
|
||||
- Search trial 66: 451 instructions, objdiff 92.691795; --- | +++ | @@ -22,0 +23 @@ | + nw4r::lyt::Pane* bodyPane; | @@ -24 +24,0 @@ | - nw4r::lyt::Pane* bodyPane; |
|
||||
|
||||
- Search trial 67: 451 instructions, objdiff 92.691795; --- | +++ | @@ -60 +60 @@ | - totalLines = 1 + lineCount; | + totalLines = lineCount + 1; |
|
||||
|
||||
- Search trial 68: 451 instructions, objdiff 92.68071; --- | +++ | @@ -142 +142 @@ | - backgroundOffset = rowHeight + backgroundOffset; | + backgroundOffset = backgroundOffset + rowHeight; |
|
||||
|
||||
- Search trial 69: 451 instructions, objdiff 92.68071; --- | +++ | @@ -23,0 +24 @@ | + f32 bodyY; | @@ -25 +25,0 @@ | - f32 bodyY; |
|
||||
|
||||
- Search trial 70: 451 instructions, objdiff 92.68071; --- | +++ | @@ -23,0 +24 @@ | + f32 messageOffset; | @@ -25 +25,0 @@ | - f32 messageOffset; |
|
||||
|
||||
- Search trial 71: 451 instructions, objdiff 92.736145; --- | +++ | @@ -9,0 +10 @@ | + f32 titleOffset; | @@ -11 +11,0 @@ | - f32 titleOffset; |
|
||||
|
||||
- Search trial 72: 451 instructions, objdiff 92.736145; --- | +++ | @@ -48 +48 @@ | - if (mNandTitleCount != 0) { | + if (0 != mNandTitleCount) { |
|
||||
|
||||
- Search trial 73: 451 instructions, objdiff 92.736145; --- | +++ | @@ -54 +54 @@ | - lineCount = lineCount + 1; | + ++lineCount; |
|
||||
|
||||
- Search trial 74: 451 instructions, objdiff 92.736145; --- | +++ | @@ -7 +7 @@ | - int nandTitleIndex; | + s32 nandTitleIndex; |
|
||||
|
||||
- Search trial 75: 451 instructions, objdiff 92.736145; --- | +++ | @@ -19,0 +20 @@ | + const wchar_t* messageForCount; | @@ -21 +21,0 @@ | - const wchar_t* messageForCount; |
|
||||
|
||||
- Search trial 76: compile failed; --- | +++ | @@ -147 +147 @@ | - ++footerChild; | + footerChild = footerChild + 1; |
|
||||
|
||||
- Search trial 77: 451 instructions, objdiff 92.736145; --- | +++ | @@ -142 +142 @@ | - backgroundOffset = backgroundOffset + rowHeight; | + backgroundOffset += rowHeight; |
|
||||
|
||||
- Search trial 78: 451 instructions, objdiff 92.736145; --- | +++ | @@ -21,0 +22 @@ | + nw4r::lyt::Pane* bodyPane; | @@ -23 +23,0 @@ | - nw4r::lyt::Pane* bodyPane; |
|
||||
|
||||
- Search trial 79: compile failed; --- | +++ | @@ -147 +147 @@ | - ++footerChild; | + footerChild = footerChild + 1; |
|
||||
|
||||
- Search trial 80: 451 instructions, objdiff 92.736145; --- | +++ | @@ -88 +88 @@ | - messageOffset += bodyHeight; | + messageOffset = messageOffset + bodyHeight; |
|
||||
|
||||
- Search trial 81: 451 instructions, objdiff 92.736145; --- | +++ | @@ -88 +88 @@ | - messageOffset = messageOffset + bodyHeight; | + messageOffset += bodyHeight; |
|
||||
|
||||
- Search trial 82: 451 instructions, objdiff 92.50333; --- | +++ | @@ -45,0 +46 @@ | + bodyHeight = bodyPane->GetSize().height; | @@ -47 +47,0 @@ | - bodyHeight = bodyPane->GetSize().height; |
|
||||
|
||||
- Search trial 83: 451 instructions, objdiff 92.50333; --- | +++ | @@ -83 +83 @@ | - lineIndex++; | + ++lineIndex; |
|
||||
|
||||
- Search trial 84: 451 instructions, objdiff 92.51441; --- | +++ | @@ -124 +124 @@ | - rowY = backgroundOffset + bodyY; | + rowY = bodyY + backgroundOffset; |
|
||||
|
||||
- Search trial 85: 451 instructions, objdiff 92.51441; --- | +++ | @@ -6,0 +7 @@ | + f32 rowHeight; | @@ -8 +8,0 @@ | - f32 rowHeight; |
|
||||
|
||||
- Search trial 86: 451 instructions, objdiff 92.51441; --- | +++ | @@ -83 +83 @@ | - ++lineIndex; | + lineIndex += 1; |
|
||||
|
||||
- Search trial 87: 451 instructions, objdiff 92.51441; --- | +++ | @@ -54 +54 @@ | - ++lineCount; | + lineCount += 1; |
|
||||
|
||||
- Search trial 88: 451 instructions, objdiff 92.51441; --- | +++ | @@ -23,0 +24 @@ | + f32 bodyY; | @@ -25 +25,0 @@ | - f32 bodyY; |
|
||||
|
||||
- Search trial 89: compile failed; --- | +++ | @@ -43 +43 @@ | - child++; | + child = child + 1; |
|
||||
|
||||
- Search trial 90: 451 instructions, objdiff 92.51441; --- | +++ | @@ -19,0 +20 @@ | + f32 bodyHeight; | @@ -21 +21,0 @@ | - f32 bodyHeight; |
|
||||
|
||||
- Search trial 91: 451 instructions, objdiff 91.06209; --- | +++ | @@ -65,3 +65 @@ | - if (lineEnd == NULL) { | - utility::layout::set_string(messageText, messageLine); | - } else { | + if (lineEnd != NULL) { | @@ -72,0 +71,2 @@ | + } else { | + utility::layout::set_string(messageText, messageLine); |
|
||||
|
||||
- Search trial 92: 451 instructions, objdiff 92.51441; --- | +++ | @@ -19,0 +20 @@ | + const wchar_t* messageForCount; | @@ -21 +21,0 @@ | - const wchar_t* messageForCount; |
|
||||
|
||||
- Search trial 93: 451 instructions, objdiff 92.51441; --- | +++ | @@ -48 +48 @@ | - if (0 != mNandTitleCount) { | + if (mNandTitleCount != 0) { |
|
||||
|
||||
- Search trial 94: 451 instructions, objdiff 92.51441; --- | +++ | @@ -8 +8 @@ | - s32 nandTitleIndex; | + u32 nandTitleIndex; |
|
||||
|
||||
- Search trial 95: compile failed; --- | +++ | @@ -43 +43 @@ | - child++; | + child += 1; |
|
||||
|
||||
- Search trial 96: 451 instructions, objdiff 92.51441; --- | +++ | @@ -8,0 +9 @@ | + f32 titleOffset; | @@ -10 +10,0 @@ | - f32 titleOffset; |
|
||||
|
||||
- Search trial 97: 451 instructions, objdiff 92.51441; --- | +++ | @@ -131 +131 @@ | - backgroundOffset -= rowHeight; | + backgroundOffset = backgroundOffset - rowHeight; |
|
||||
|
||||
- Search trial 98: 451 instructions, objdiff 92.51441; --- | +++ | @@ -72 +72 @@ | - messageLine = 1 + lineEnd; | + messageLine = lineEnd + 1; |
|
||||
|
||||
- Search trial 99: 451 instructions, objdiff 92.51441; --- | +++ | @@ -13 +13 @@ | - int lineLength; | + u32 lineLength; |
|
||||
|
||||
- Search trial 100: 451 instructions, objdiff 92.51441; --- | +++ | @@ -20,0 +21 @@ | + nw4r::lyt::Pane* bodyPane; | @@ -22 +22,0 @@ | - nw4r::lyt::Pane* bodyPane; |
|
||||
|
||||
- Search trial 101: 451 instructions, objdiff 92.51441; --- | +++ | @@ -16,0 +17 @@ | + const wchar_t* messageLine; | @@ -18 +18,0 @@ | - const wchar_t* messageLine; |
|
||||
|
||||
- Search trial 102: 451 instructions, objdiff 92.51441; --- | +++ | @@ -83 +83 @@ | - lineIndex += 1; | + lineIndex++; |
|
||||
|
||||
- Search trial 103: 451 instructions, objdiff 92.51441; --- | +++ | @@ -54 +54 @@ | - lineCount += 1; | + ++lineCount; |
|
||||
|
||||
- Search trial 104: 451 instructions, objdiff 91.06209; --- | +++ | @@ -65,3 +65 @@ | - if (lineEnd == NULL) { | - utility::layout::set_string(messageText, messageLine); | - } else { | + if (lineEnd != NULL) { | @@ -72,0 +71,2 @@ | + } else { | + utility::layout::set_string(messageText, messageLine); |
|
||||
|
||||
- Search trial 105: 451 instructions, objdiff 92.51441; --- | +++ | @@ -54 +54 @@ | - ++lineCount; | + lineCount++; |
|
||||
|
||||
- Search trial 106: 451 instructions, objdiff 92.51441; --- | +++ | @@ -48 +48 @@ | - if (mNandTitleCount != 0) { | + if (0 != mNandTitleCount) { |
|
||||
|
||||
- Search trial 107: 451 instructions, objdiff 92.51441; --- | +++ | @@ -43 +43 @@ | - child++; | + ++child; |
|
||||
|
||||
- Search trial 108: 451 instructions, objdiff 92.51441; --- | +++ | @@ -60 +60 @@ | - totalLines = lineCount + 1; | + totalLines = 1 + lineCount; |
|
||||
|
||||
- Search trial 109: 451 instructions, objdiff 91.06209; --- | +++ | @@ -65,3 +65 @@ | - if (lineEnd == NULL) { | - utility::layout::set_string(messageText, messageLine); | - } else { | + if (lineEnd != NULL) { | @@ -72,0 +71,2 @@ | + } else { | + utility::layout::set_string(messageText, messageLine); |
|
||||
|
||||
- Search trial 110: 451 instructions, objdiff 92.51441; --- | +++ | @@ -9,0 +10 @@ | + f32 backgroundOffset; | @@ -11 +11,0 @@ | - f32 backgroundOffset; |
|
||||
|
||||
- Search trial 111: 451 instructions, objdiff 92.51441; --- | +++ | @@ -13 +13 @@ | - u32 lineLength; | + s32 lineLength; |
|
||||
|
||||
- Search trial 112: 451 instructions, objdiff 92.51441; --- | +++ | @@ -6 +6 @@ | - s32 visibleRows; | + int visibleRows; |
|
||||
|
||||
- Search trial 113: 451 instructions, objdiff 92.51441; --- | +++ | @@ -22,0 +23 @@ | + f32 bodyY; | @@ -24 +24,0 @@ | - f32 bodyY; |
|
||||
|
||||
- Search trial 114: 451 instructions, objdiff 92.51441; --- | +++ | @@ -142 +142 @@ | - backgroundOffset += rowHeight; | + backgroundOffset = backgroundOffset + rowHeight; |
|
||||
|
||||
- Search trial 115: 451 instructions, objdiff 92.51441; --- | +++ | @@ -5,0 +6 @@ | + f32 rowHeight; | @@ -7 +7,0 @@ | - f32 rowHeight; |
|
||||
|
||||
- Search trial 116: 451 instructions, objdiff 92.51441; --- | +++ | @@ -43 +43 @@ | - ++child; | + child++; |
|
||||
|
||||
- Search trial 117: 451 instructions, objdiff 92.51441; --- | +++ | @@ -1,0 +2 @@ | + f32 rowTop; | @@ -3 +3,0 @@ | - f32 rowTop; |
|
||||
|
||||
- Search trial 118: 451 instructions, objdiff 92.51441; --- | +++ | @@ -43 +43 @@ | - child++; | + ++child; |
|
||||
|
||||
- Search trial 119: compile failed; --- | +++ | @@ -147 +147 @@ | - ++footerChild; | + footerChild += 1; |
|
||||
|
||||
- Search trial 120: 451 instructions, objdiff 92.51441; --- | +++ | @@ -82 +82 @@ | - messageOffset = messageOffset - bodyHeight; | + messageOffset -= bodyHeight; |
|
||||
|
||||
- Search trial 121: 451 instructions, objdiff 92.51441; --- | +++ | @@ -13 +13 @@ | - s32 lineLength; | + int lineLength; |
|
||||
|
||||
- Search trial 122: 451 instructions, objdiff 92.51441; --- | +++ | @@ -16,0 +17 @@ | + nw4r::lyt::TextBox* messageText; | @@ -18 +18,0 @@ | - nw4r::lyt::TextBox* messageText; |
|
||||
|
||||
- Search trial 123: 451 instructions, objdiff 92.51441; --- | +++ | @@ -82 +82 @@ | - messageOffset -= bodyHeight; | + messageOffset = messageOffset - bodyHeight; |
|
||||
|
||||
- Search trial 124: 451 instructions, objdiff 92.51441; --- | +++ | @@ -10,0 +11 @@ | + const wchar_t* lineEnd; | @@ -12 +12,0 @@ | - const wchar_t* lineEnd; |
|
||||
|
||||
- Search trial 125: 451 instructions, objdiff 92.51441; --- | +++ | @@ -13 +13 @@ | - int lineLength; | + u32 lineLength; |
|
||||
|
||||
- Search trial 126: 451 instructions, objdiff 92.51441; --- | +++ | @@ -83 +83 @@ | - lineIndex++; | + lineIndex += 1; |
|
||||
|
||||
- Search trial 127: 451 instructions, objdiff 92.51441; --- | +++ | @@ -19,0 +20 @@ | + nw4r::lyt::Pane* bodyPane; | @@ -21 +21,0 @@ | - nw4r::lyt::Pane* bodyPane; |
|
||||
|
||||
- Search trial 128: 451 instructions, objdiff 92.51441; --- | +++ | @@ -8 +8 @@ | - u32 nandTitleIndex; | + s32 nandTitleIndex; |
|
||||
|
||||
## Disposition
|
||||
|
||||
- Retain only exact create, already committed as fb00e5ea. drawTransferTitles remains unmodified in the retained source. Its scoped IRO 0 and 1 candidates both compile to 451 instructions with 287 differences. The strongest private instruction candidate has 263 differences, 451/451 instructions, and identical other function instruction scores; its objdiff score 92.84701 is below baseline 93.456764, so it is rejected. Best private diff: /mnt/drive2/projects/wii-ipl-workers/_luna-runs/best/sol-x14.iplSDMemory.diff.
|
||||
- draw mwdbg capture /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/drawTransferTitles__Q33ipl5scene8SDMemoryFv-20261008-220103 reproduces 252/252 virtual registers. Target needs cached newline delimiters in two loops, a different guarded line-loop entry, and color argument addresses formed at each call. The source hoists four color addresses across the title loop, causing four extra saved GPRs and a 16-byte larger frame. Named-color copies and real solid-color helper variants did not produce the target layout. No dummy locals, carrier objects, assembly, new volatile fields, or artificial offsets were retained.
|
||||
- Unit remains NonMatching because drawTransferTitles is open. configure.py untouched.
|
||||
|
||||
- draw constrained declaration-number simulator search: 1500 steps, 1/7 requested colors. The unconstrained shared simulator also permutes compiler @ temporaries; such output is not a source declaration solution. The constrained copy and output remain /tmp/sol-x14-regsim-real.py and /tmp/sol-x14-draw-regsim.txt.
|
||||
|
||||
## Final gate
|
||||
|
||||
Command: python3 /mnt/drive2/projects/wii-ipl-workers/_restore0928-tools/gate.py src/scene/sdChannelMemory/iplSDMemory --quick
|
||||
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[src/scene/sdChannelMemory/iplSDMemory] pool: IDENTICAL
|
||||
[src/scene/sdChannelMemory/iplSDMemory] objdiff: code 19068/20872 data 3344/3344 functions 65/66 fuzzy 99.4345 linked code 0
|
||||
[src/scene/sdChannelMemory/iplSDMemory] instruction-exact functions: 65/66
|
||||
[src/scene/sdChannelMemory/iplSDMemory] section .data size 3144 match 100.0
|
||||
[src/scene/sdChannelMemory/iplSDMemory] section .sdata size 152 match 100.0
|
||||
[src/scene/sdChannelMemory/iplSDMemory] section .sdata2 size 48 match 100.0
|
||||
[src/scene/sdChannelMemory/iplSDMemory] section .text size 20872 match 99.434456
|
||||
[src/scene/sdChannelMemory/iplSDMemory] below 100: drawTransferTitles__Q33ipl5scene8SDMemoryFv 93.456764
|
||||
[src/scene/sdChannelMemory/iplSDMemory] baseline: code 14812/20872 data 3344 functions 64 fuzzy 99.2629
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 97.58331 -> 97.72541
|
||||
global fuzzy_match_percent: 99.89996 -> 99.90116
|
||||
global complete_code_percent: 88.95958 -> 88.95958
|
||||
global matched_data_percent: 100.00000 -> 100.00000
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
review note: src/scene/sdChannelMemory/iplSDMemory.cpp: per-function optimization pragma (levers 26: orchestrator checks the per-use address recompute evidence) (+1 net), e.g. #pragma ppc_iro_level 1
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
Final direct instruction comparison against the saved initial object changes only create: 175 -> 0 differing, 1064/1064 instructions. Gate instruction-exact count is 65/66. create exact-name objdiff is 100.0%; draw is restored to baseline 93.456764%. Scope review: source commit fb00e5ea contains only the real countCachedTitles helper, the one-function IRO 1 push/pop, and the replacement of the title-cache loop with the helper call. configure.py unchanged. Existing rx61-work and rx69 untracked files untouched. No push, PR, merge, rebase, other-worktree edits, or subagent was used.
|
||||
72
tools/decomp-assist/sol-x15.attempts.md
Normal file
72
tools/decomp-assist/sol-x15.attempts.md
Normal file
@@ -0,0 +1,72 @@
|
||||
# sol-x15 ATERMi_AutoConfigThread
|
||||
|
||||
Branch agent/w1008/data-d3-j, baseline 9321a926. Owned source src/scene/setting/ATERM.c.
|
||||
|
||||
Read sol-common, brief-v2, levers, prior ATERM logs, and orch-aterm-autoconfig.md before trials. Baseline pools identical, zero strings. Function 94.75%, 3/40 differing instructions. ATERM 20/26 exact, code 12200/19204, data 18864/18864.
|
||||
|
||||
| Trial | Result | Other functions | Source SHA256 prefix |
|
||||
| --- | --- | --- | --- |
|
||||
| 01-readable | 94.75%, 3 differing, 40/40 instructions | unchanged | 831dec15aef3 |
|
||||
| 02-report-state-args | 88.625%, 20 differing, 42/40 instructions | unchanged | 5b9b672537fe |
|
||||
| 03-completion-state-args | 88.625%, 20 differing, 42/40 instructions | unchanged | 3b406a9e8504 |
|
||||
| 04-completion-status-args | 87.75%, 10 differing, 40/40 instructions | unchanged | 544e37b2e460 |
|
||||
| 05-completion-aggregate | Compile rejected, MWCC C dynamic aggregate initializer is not a constant expression | unchanged | 05445452803c |
|
||||
| 06-local-aggregate | Compile rejected, MWCC C dynamic aggregate initializer is not a constant expression | unchanged | ee4701aa576f |
|
||||
| 07-state-from-aggregate | Compile rejected, MWCC C dynamic aggregate initializer is not a constant expression | unchanged | e1aa84f37e70 |
|
||||
| 08-completion-three-args | 87.75%, 10 differing, 40/40 instructions | unchanged | 7584ff68717f |
|
||||
| 09-completion-time-middle | 87.75%, 10 differing, 40/40 instructions | unchanged | 38f0dbca8d95 |
|
||||
| 10-completion-time-first | 87.75%, 10 differing, 40/40 instructions | unchanged | 954a9a688612 |
|
||||
| 11-completion-result-first | 87.75%, 10 differing, 40/40 instructions | unchanged | 8e61e54b289a |
|
||||
| 12-completion-const-return | 87.75%, 10 differing, 40/40 instructions | unchanged | 15722d7eb4c6 |
|
||||
| 13-completion-const-reported | 87.75%, 10 differing, 40/40 instructions | unchanged | 9ce069cbc138 |
|
||||
| 14-completion-state-declared-last | 87.75%, 10 differing, 40/40 instructions | unchanged | 8f099e2f77cc |
|
||||
| 15-completion-assigned-state | 87.75%, 10 differing, 40/40 instructions | unchanged | 166049ed8b6a |
|
||||
| 16-deadline-before-completion | 94.25%, 7 differing, 40/40 instructions | unchanged | ad71a24a281c |
|
||||
| 17-completion-named-sentinel | 87.75%, 10 differing, 40/40 instructions | unchanged | 1ff1a2596589 |
|
||||
| 18-completion-pointer | 94.25%, 7 differing, 40/40 instructions | unchanged | e9ba48ff3758 |
|
||||
| 19-completion-pointer-deadline | 87.75%, 10 differing, 40/40 instructions | unchanged | 3da6b047b91d |
|
||||
| 20-report-named-state | 94.75%, 3 differing, 40/40 instructions | unchanged | d883e434ed7e |
|
||||
| 21-report-global-state | 94.75%, 3 differing, 40/40 instructions | unchanged | 20856d20d55d |
|
||||
| 22-chained-state | 94.75%, 3 differing, 40/40 instructions | unchanged | 5ee804fb6b9b |
|
||||
| 23-chained-select | 94.0%, 9 differing, 40/40 instructions | unchanged | 28c944e1b6b3 |
|
||||
| 24-progress-macro | 94.75%, 3 differing, 40/40 instructions | unchanged | 74121dd6ef4e |
|
||||
| 25-progress-return-aggregate | 77.625%, 25 differing, 43/40 instructions | unchanged | f0f0d22caef9 |
|
||||
| 26-progress-return-after-state | 91.575%, 21 differing, 43/40 instructions | unchanged | 1c6a11ab59bd |
|
||||
| 27-get-progress-state-param | 94.0%, 9 differing, 40/40 instructions | unchanged | f3a27668f96f |
|
||||
| 28-get-progress-result-param | 94.0%, 9 differing, 40/40 instructions | unchanged | 5624532f42a1 |
|
||||
| 29-get-completion-result-param | 94.25%, 7 differing, 40/40 instructions | unchanged | 4e62454cd179 |
|
||||
| 30-progress-pointer-snapshot | 87.75%, 10 differing, 40/40 instructions | unchanged | d71b77bd441e |
|
||||
| 31-progress-pointer-load-last | 94.75%, 3 differing, 40/40 instructions | unchanged | 88dd98d9cd90 |
|
||||
| 32-progress-pointer-load-first | 85.2%, 10 differing, 40/40 instructions | unchanged | 879aa0bb3ea7 |
|
||||
| 33-report-state-local-copy | 94.25%, 7 differing, 40/40 instructions | unchanged | b8848a306fe9 |
|
||||
| 34-report-state-global-reload | 94.25%, 7 differing, 40/40 instructions | unchanged | cb1e4ad09655 |
|
||||
| 35-completion-callback-param | 87.75%, 10 differing, 40/40 instructions | unchanged | 86ae07db931c |
|
||||
| 36-completion-callback-first | 87.75%, 10 differing, 40/40 instructions | unchanged | a093a81864a2 |
|
||||
| 37-completion-callback-global-result | 94.75%, 3 differing, 40/40 instructions | unchanged | 35c8192d9e95 |
|
||||
| 38-global-result-select | 66.325%, 37 differing, 37/40 instructions | unchanged | 877456206a39 |
|
||||
| 39-progress-deadline-macro | 94.75%, 3 differing, 40/40 instructions | unchanged | 9c64104abc48 |
|
||||
| 40-progress-shared-inline | 94.75%, 3 differing, 40/40 instructions | unchanged | 39bec75fdec5 |
|
||||
| 41-shared-sibling-inline | 94.75%, 3/40 differing | ATERMRunConfigProtocol 92.100945 -> 92.08623; ATERMi_ApConfigEnd 100.0 -> 99.84496 | measured full unit |
|
||||
|
||||
## Backend captures
|
||||
|
||||
- Readable baseline: /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/ATERMi_AutoConfigThread-20261008-215834. Backend-01 orders addi/subfic/nor/li/srawi/lwz. NOR r43 gets r0, gAtermResult load r48 gets r0. Their live ranges do not interfere. regsim reproduces 17/17 registers. Active tie values are compiler temporaries, so named-local declaration order cannot directly reorder them.
|
||||
- Completion helper with reported-result parameter: /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/ATERMi_AutoConfigThread-20261008-215954. Backend-01 still orders addi/subfic/nor/li/srawi/lwz. The helper gives reportedResult the early inline-argument register r34, colored r5, while the sentinel r47 gets r0 and the NOR r44 gets r3. It fixes the NOR destination but changes the sentinel/state/result register assignments and produces 10 differences. Argument permutations, const parameters, local declaration placement, and a named sentinel do not solve it.
|
||||
- Shared helper capture: /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/ATERMi_AutoConfigThread-20261008-220248. Backend-01 still orders addi/subfic/nor/li/srawi/lwz, with the same virtual registers as the readable baseline. Sharing the helper does not move the result load before the NOR.
|
||||
- Shared progress helper trial 41 replaces four sibling report blocks and the completion report. AutoConfigThread remains at 3/40. ATERMi_ApConfigEnd drops from exact to 99.84496%, and RunConfigProtocol changes from 92.100945% to 92.08623%. Reject the helper and restore all siblings.
|
||||
|
||||
## Retained change
|
||||
|
||||
Replace the hand-expanded equality mask and arithmetic shift with completedState = (result == 1) ? 6 : 7. Keep deadline/state/progress store order. This compiles to the same function instructions as the initial source and leaves every ATERM function score unchanged. No exact gain.
|
||||
|
||||
Final independent comparison recompiles the original committed source into /tmp/sol-x15-baseline. Every allocated ELF section and every relocation resolved to section/value or external symbol is identical to the readable replacement. This proves every sibling function and unit code/data are unchanged, beyond unchanged fuzzy scores. Final pool check identical, ctxdiff 3 differences with 40/40 instructions, focused source diff clean.
|
||||
|
||||
## Final gate
|
||||
|
||||
Command: python3 /mnt/drive2/projects/wii-ipl-workers/_restore0928-tools/gate.py src/scene/setting/ATERM --quick
|
||||
|
||||
Full 43U build passes. DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d. Pools identical. Unit exact functions 20/26 before and after, matched code 12200/19204, matched data 18864/18864, fuzzy 98.20204%. Regressions 0, forbidden patterns 0, readability warnings 0. Gate baseline is ancestor 22e6bbed, one commit before HEAD; the separate current-HEAD unit baseline and allocated-section/relocation comparison also prove zero drops.
|
||||
|
||||
GATE PASS
|
||||
|
||||
Readability-only source commit cdf7c17c. Exact matching remains open after 41 source candidates, including three rejected aggregate initializers. The retained ternary replaces the hand-expanded comparison without changing executable code or data.
|
||||
497
tools/decomp-assist/sol-x7.attempts.md
Normal file
497
tools/decomp-assist/sol-x7.attempts.md
Normal file
@@ -0,0 +1,497 @@
|
||||
# sol-x7 attempts
|
||||
|
||||
Baseline 9321a926, branch agent/w1008/data-d9. Read sol-common, brief-v2, all levers, prior sol-tex rounds, owned historical attempt logs, unslop and writing-for-agents. No remote writes or other-worktree edits.
|
||||
|
||||
- {"trial": "baseline-RGB565", "unit": "RGB565", "diffs": 169, "insns": [169, 170], "base": false, "score": 93.91765, "exact": 12}
|
||||
- {"trial": "baseline-RGBA8", "unit": "RGBA8", "diffs": 169, "insns": [169, 170], "base": false, "score": 93.91765, "exact": 11}
|
||||
- {"trial": "baseline-Y8U8V8", "unit": "Y8U8V8", "diffs": 195, "insns": [195, 196], "base": false, "score": 92.78571, "exact": 12}
|
||||
- {"trial": "RGB565-plane-sizes-s32", "unit": "RGB565", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.71176, "exact": 12}
|
||||
- {"trial": "RGB565-plane-sizes-u32", "unit": "RGB565", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.71176, "exact": 12}
|
||||
- {"trial": "RGB565-plane-sizes-u16", "unit": "RGB565", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.71176, "exact": 12}
|
||||
- {"trial": "RGB565-plane-sizes-u8", "unit": "RGB565", "diffs": 170, "insns": [163, 170], "base": false, "score": 86.98235, "exact": 12}
|
||||
- {"trial": "RGB565-layout-outer-u32", "unit": "RGB565", "error": "compile"}
|
||||
- {"trial": "RGB565-layout-outer-u8", "unit": "RGB565", "error": "compile"}
|
||||
- {"trial": "RGB565-layout-case-u32", "unit": "RGB565", "error": "compile"}
|
||||
- {"trial": "RGB565-layout-case-u8", "unit": "RGB565", "error": "compile"}
|
||||
- {"trial": "RGBA8-plane-sizes-s32", "unit": "RGBA8", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.71176, "exact": 11}
|
||||
- {"trial": "RGBA8-plane-sizes-u32", "unit": "RGBA8", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.71176, "exact": 11}
|
||||
- {"trial": "RGBA8-plane-sizes-u16", "unit": "RGBA8", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.71176, "exact": 11}
|
||||
- {"trial": "RGBA8-plane-sizes-u8", "unit": "RGBA8", "diffs": 170, "insns": [163, 170], "base": false, "score": 86.98235, "exact": 11}
|
||||
- {"trial": "RGBA8-layout-outer-u32", "unit": "RGBA8", "error": "compile"}
|
||||
- {"trial": "RGBA8-layout-outer-u8", "unit": "RGBA8", "error": "compile"}
|
||||
- {"trial": "RGBA8-layout-case-u32", "unit": "RGBA8", "error": "compile"}
|
||||
- {"trial": "RGBA8-layout-case-u8", "unit": "RGBA8", "error": "compile"}
|
||||
- {"trial": "Y8U8V8-plane-sizes-s32", "unit": "Y8U8V8", "diffs": 194, "insns": [195, 196], "base": false, "score": 84.77041, "exact": 12}
|
||||
- {"trial": "Y8U8V8-plane-sizes-u32", "unit": "Y8U8V8", "diffs": 194, "insns": [195, 196], "base": false, "score": 84.77041, "exact": 12}
|
||||
- {"trial": "Y8U8V8-plane-sizes-u16", "unit": "Y8U8V8", "diffs": 194, "insns": [195, 196], "base": false, "score": 84.77041, "exact": 12}
|
||||
- {"trial": "Y8U8V8-plane-sizes-u8", "unit": "Y8U8V8", "diffs": 196, "insns": [189, 196], "base": false, "score": 87.10714, "exact": 12}
|
||||
- {"trial": "Y8U8V8-layout-outer-u32", "unit": "Y8U8V8", "error": "compile"}
|
||||
- {"trial": "Y8U8V8-layout-outer-u8", "unit": "Y8U8V8", "error": "compile"}
|
||||
- {"trial": "Y8U8V8-layout-case-u32", "unit": "Y8U8V8", "error": "compile"}
|
||||
- {"trial": "Y8U8V8-layout-case-u8", "unit": "Y8U8V8", "error": "compile"}
|
||||
- {"trial": "baseline-RGB565", "unit": "RGB565", "diffs": 169, "insns": [169, 170], "base": false, "score": 93.91765, "exact": 12}
|
||||
- {"trial": "baseline-RGBA8", "unit": "RGBA8", "diffs": 169, "insns": [169, 170], "base": false, "score": 93.91765, "exact": 11}
|
||||
- {"trial": "baseline-Y8U8V8", "unit": "Y8U8V8", "diffs": 195, "insns": [195, 196], "base": false, "score": 92.78571, "exact": 12}
|
||||
- {"trial": "RGB565-plane-sizes-s32", "unit": "RGB565", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.71176, "exact": 12}
|
||||
- {"trial": "RGB565-plane-sizes-u32", "unit": "RGB565", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.71176, "exact": 12}
|
||||
- {"trial": "RGB565-plane-sizes-u16", "unit": "RGB565", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.71176, "exact": 12}
|
||||
- {"trial": "RGB565-layout-fixed-outer-u32", "unit": "RGB565", "diffs": 169, "insns": [169, 170], "base": false, "score": 93.91765, "exact": 12}
|
||||
- {"trial": "RGB565-layout-fixed-outer-u8", "unit": "RGB565", "diffs": 169, "insns": [169, 170], "base": false, "score": 93.91765, "exact": 12}
|
||||
- {"trial": "RGB565-layout-fixed-case-u32", "unit": "RGB565", "diffs": 169, "insns": [169, 170], "base": false, "score": 93.91765, "exact": 12}
|
||||
- {"trial": "RGB565-layout-fixed-case-u8", "unit": "RGB565", "diffs": 169, "insns": [169, 170], "base": false, "score": 93.91765, "exact": 12}
|
||||
- {"trial": "RGBA8-plane-sizes-s32", "unit": "RGBA8", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.71176, "exact": 11}
|
||||
- {"trial": "RGBA8-plane-sizes-u32", "unit": "RGBA8", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.71176, "exact": 11}
|
||||
- {"trial": "RGBA8-plane-sizes-u16", "unit": "RGBA8", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.71176, "exact": 11}
|
||||
- {"trial": "RGBA8-layout-fixed-outer-u32", "unit": "RGBA8", "diffs": 169, "insns": [169, 170], "base": false, "score": 93.91765, "exact": 11}
|
||||
- {"trial": "RGBA8-layout-fixed-outer-u8", "unit": "RGBA8", "diffs": 169, "insns": [169, 170], "base": false, "score": 93.91765, "exact": 11}
|
||||
- {"trial": "RGBA8-layout-fixed-case-u32", "unit": "RGBA8", "diffs": 169, "insns": [169, 170], "base": false, "score": 93.91765, "exact": 11}
|
||||
- {"trial": "RGBA8-layout-fixed-case-u8", "unit": "RGBA8", "diffs": 169, "insns": [169, 170], "base": false, "score": 93.91765, "exact": 11}
|
||||
- {"trial": "Y8U8V8-plane-sizes-s32", "unit": "Y8U8V8", "diffs": 194, "insns": [195, 196], "base": false, "score": 84.77041, "exact": 12}
|
||||
- {"trial": "Y8U8V8-plane-sizes-u32", "unit": "Y8U8V8", "diffs": 194, "insns": [195, 196], "base": false, "score": 84.77041, "exact": 12}
|
||||
- {"trial": "Y8U8V8-plane-sizes-u16", "unit": "Y8U8V8", "diffs": 194, "insns": [195, 196], "base": false, "score": 84.77041, "exact": 12}
|
||||
- {"trial": "Y8U8V8-layout-fixed-outer-u32", "unit": "Y8U8V8", "diffs": 195, "insns": [195, 196], "base": false, "score": 92.78571, "exact": 12}
|
||||
- {"trial": "Y8U8V8-layout-fixed-outer-u8", "unit": "Y8U8V8", "diffs": 195, "insns": [195, 196], "base": false, "score": 92.78571, "exact": 12}
|
||||
- {"trial": "Y8U8V8-layout-fixed-case-u32", "unit": "Y8U8V8", "diffs": 195, "insns": [195, 196], "base": false, "score": 92.78571, "exact": 12}
|
||||
- {"trial": "Y8U8V8-layout-fixed-case-u8", "unit": "Y8U8V8", "diffs": 195, "insns": [195, 196], "base": false, "score": 92.78571, "exact": 12}
|
||||
- {"trial": "RGB565-pre-size-conditional-False", "unit": "RGB565", "diffs": 191, "insns": [195, 170], "base": false, "score": 69.6647, "exact": 12}
|
||||
- {"trial": "RGB565-pre-size-conditional-True", "unit": "RGB565", "diffs": 187, "insns": [191, 170], "base": false, "score": 73.55882, "exact": 12}
|
||||
- {"trial": "RGB565-pre-size-if-False", "unit": "RGB565", "diffs": 182, "insns": [188, 170], "base": false, "score": 74.752945, "exact": 12}
|
||||
- {"trial": "RGB565-pre-size-if-True", "unit": "RGB565", "diffs": 182, "insns": [184, 170], "base": false, "score": 74.935295, "exact": 12}
|
||||
- {"trial": "RGB565-pre-size-switch-False", "unit": "RGB565", "diffs": 188, "insns": [190, 170], "base": false, "score": 74.858826, "exact": 12}
|
||||
- {"trial": "RGB565-pre-size-switch-True", "unit": "RGB565", "diffs": 184, "insns": [186, 170], "base": false, "score": 75.94118, "exact": 12}
|
||||
- {"trial": "RGB565-pre-size-shift-False", "unit": "RGB565", "diffs": 178, "insns": [179, 170], "base": false, "score": 73.62353, "exact": 12}
|
||||
- {"trial": "RGB565-pre-size-shift-True", "unit": "RGB565", "diffs": 174, "insns": [175, 170], "base": false, "score": 73.958824, "exact": 12}
|
||||
- {"trial": "RGB565-plane-helper-False-False", "unit": "RGB565", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.59412, "exact": 12}
|
||||
- {"trial": "RGB565-plane-helper-False-True", "unit": "RGB565", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.59412, "exact": 12}
|
||||
- {"trial": "RGB565-plane-helper-True-False", "unit": "RGB565", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.59412, "exact": 12}
|
||||
- {"trial": "RGB565-plane-helper-True-True", "unit": "RGB565", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.59412, "exact": 12}
|
||||
- {"trial": "RGBA8-pre-size-conditional-False", "unit": "RGBA8", "diffs": 191, "insns": [195, 170], "base": false, "score": 69.6647, "exact": 11}
|
||||
- {"trial": "RGBA8-pre-size-conditional-True", "unit": "RGBA8", "diffs": 187, "insns": [191, 170], "base": false, "score": 73.55882, "exact": 11}
|
||||
- {"trial": "RGBA8-pre-size-if-False", "unit": "RGBA8", "diffs": 182, "insns": [188, 170], "base": false, "score": 74.752945, "exact": 11}
|
||||
- {"trial": "RGBA8-pre-size-if-True", "unit": "RGBA8", "diffs": 182, "insns": [184, 170], "base": false, "score": 74.935295, "exact": 11}
|
||||
- {"trial": "RGBA8-pre-size-switch-False", "unit": "RGBA8", "diffs": 188, "insns": [190, 170], "base": false, "score": 74.858826, "exact": 11}
|
||||
- {"trial": "RGBA8-pre-size-switch-True", "unit": "RGBA8", "diffs": 184, "insns": [186, 170], "base": false, "score": 75.94118, "exact": 11}
|
||||
- {"trial": "RGBA8-pre-size-shift-False", "unit": "RGBA8", "diffs": 178, "insns": [179, 170], "base": false, "score": 73.62353, "exact": 11}
|
||||
- {"trial": "RGBA8-pre-size-shift-True", "unit": "RGBA8", "diffs": 174, "insns": [175, 170], "base": false, "score": 73.958824, "exact": 11}
|
||||
- {"trial": "RGBA8-plane-helper-False-False", "unit": "RGBA8", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.59412, "exact": 11}
|
||||
- {"trial": "RGBA8-plane-helper-False-True", "unit": "RGBA8", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.59412, "exact": 11}
|
||||
- {"trial": "RGBA8-plane-helper-True-False", "unit": "RGBA8", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.59412, "exact": 11}
|
||||
- {"trial": "RGBA8-plane-helper-True-True", "unit": "RGBA8", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.59412, "exact": 11}
|
||||
- {"trial": "Y8U8V8-pre-size-conditional-False", "unit": "Y8U8V8", "diffs": 217, "insns": [221, 196], "base": false, "score": 74.04592, "exact": 12}
|
||||
- {"trial": "Y8U8V8-pre-size-conditional-True", "unit": "Y8U8V8", "diffs": 213, "insns": [217, 196], "base": false, "score": 69.755104, "exact": 12}
|
||||
- {"trial": "Y8U8V8-pre-size-if-False", "unit": "Y8U8V8", "diffs": 208, "insns": [214, 196], "base": false, "score": 74.561226, "exact": 12}
|
||||
- {"trial": "Y8U8V8-pre-size-if-True", "unit": "Y8U8V8", "diffs": 208, "insns": [210, 196], "base": false, "score": 76.79592, "exact": 12}
|
||||
- {"trial": "Y8U8V8-pre-size-switch-False", "unit": "Y8U8V8", "diffs": 214, "insns": [216, 196], "base": false, "score": 74.65306, "exact": 12}
|
||||
- {"trial": "Y8U8V8-pre-size-switch-True", "unit": "Y8U8V8", "diffs": 210, "insns": [212, 196], "base": false, "score": 78.28571, "exact": 12}
|
||||
- {"trial": "Y8U8V8-pre-size-shift-False", "unit": "Y8U8V8", "diffs": 204, "insns": [205, 196], "base": false, "score": 73.34694, "exact": 12}
|
||||
- {"trial": "Y8U8V8-pre-size-shift-True", "unit": "Y8U8V8", "diffs": 200, "insns": [201, 196], "base": false, "score": 72.46939, "exact": 12}
|
||||
- {"trial": "Y8U8V8-plane-helper-False-False", "unit": "Y8U8V8", "diffs": 194, "insns": [195, 196], "base": false, "score": 84.744896, "exact": 12}
|
||||
- {"trial": "Y8U8V8-plane-helper-False-True", "unit": "Y8U8V8", "diffs": 194, "insns": [195, 196], "base": false, "score": 84.744896, "exact": 12}
|
||||
- {"trial": "Y8U8V8-plane-helper-True-False", "unit": "Y8U8V8", "diffs": 194, "insns": [195, 196], "base": false, "score": 84.744896, "exact": 12}
|
||||
- {"trial": "Y8U8V8-plane-helper-True-True", "unit": "Y8U8V8", "diffs": 194, "insns": [195, 196], "base": false, "score": 84.744896, "exact": 12}
|
||||
- {"trial": "rgba411-baseline", "unit": "RGBA8", "diffs": 153, "insns": [242, 242], "base": false, "score": 82.70661, "exact": 11}
|
||||
- {"trial": "rgba411-all-expression", "unit": "RGBA8", "diffs": 161, "insns": [242, 242], "base": false, "score": 79.78925, "exact": 11}
|
||||
- {"trial": "rgba411-all-assign", "unit": "RGBA8", "diffs": 165, "insns": [242, 242], "base": false, "score": 77.694214, "exact": 11}
|
||||
- {"trial": "rgba411-all-locals", "unit": "RGBA8", "diffs": 161, "insns": [242, 242], "base": false, "score": 79.78925, "exact": 11}
|
||||
- {"trial": "rgba411-greenblue-expression", "unit": "RGBA8", "diffs": 161, "insns": [242, 242], "base": false, "score": 79.78925, "exact": 11}
|
||||
- {"trial": "rgba411-greenblue-assign", "unit": "RGBA8", "diffs": 171, "insns": [242, 242], "base": false, "score": 76.75207, "exact": 11}
|
||||
- {"trial": "rgba411-greenblue-locals", "unit": "RGBA8", "diffs": 161, "insns": [242, 242], "base": false, "score": 79.78925, "exact": 11}
|
||||
- {"trial": "rgba411-red-expression", "unit": "RGBA8", "diffs": 160, "insns": [242, 242], "base": false, "score": 82.119835, "exact": 11}
|
||||
- {"trial": "rgba411-red-assign", "unit": "RGBA8", "diffs": 150, "insns": [242, 242], "base": false, "score": 79.11157, "exact": 11}
|
||||
- {"trial": "rgba411-red-locals", "unit": "RGBA8", "diffs": 160, "insns": [242, 242], "base": false, "score": 82.119835, "exact": 11}
|
||||
- {"trial": "rgba411-middle-expression", "unit": "RGBA8", "diffs": 161, "insns": [242, 242], "base": false, "score": 79.78925, "exact": 11}
|
||||
- {"trial": "rgba411-middle-assign", "unit": "RGBA8", "diffs": 165, "insns": [242, 242], "base": false, "score": 80.71075, "exact": 11}
|
||||
- {"trial": "rgba411-middle-locals", "unit": "RGBA8", "diffs": 161, "insns": [242, 242], "base": false, "score": 79.78925, "exact": 11}
|
||||
- {"trial": "rgba411-edges-expression", "unit": "RGBA8", "diffs": 161, "insns": [242, 242], "base": false, "score": 79.83058, "exact": 11}
|
||||
- {"trial": "rgba411-edges-assign", "unit": "RGBA8", "diffs": 157, "insns": [242, 242], "base": false, "score": 77.96281, "exact": 11}
|
||||
- {"trial": "rgba411-edges-locals", "unit": "RGBA8", "diffs": 161, "insns": [242, 242], "base": false, "score": 79.83058, "exact": 11}
|
||||
- {"trial": "rgba411-index-single-after", "unit": "RGBA8", "diffs": 161, "insns": [242, 242], "base": false, "score": 80.29752, "exact": 11}
|
||||
- {"trial": "rgba411-index-single-before", "unit": "RGBA8", "diffs": 226, "insns": [245, 242], "base": false, "score": 74.24793, "exact": 11}
|
||||
- {"trial": "rgba411-index-perpixel-after", "unit": "RGBA8", "diffs": 159, "insns": [242, 242], "base": false, "score": 78.90496, "exact": 11}
|
||||
- {"trial": "rgba411-index-perpixel-before", "unit": "RGBA8", "diffs": 226, "insns": [245, 242], "base": false, "score": 73.86777, "exact": 11}
|
||||
- {"trial": "RGB565-stride-size-pitch-False-early", "unit": "RGB565", "diffs": 167, "insns": [169, 170], "base": false, "score": 79.87059, "exact": 12}
|
||||
- {"trial": "RGB565-stride-size-pitch-False-late", "unit": "RGB565", "diffs": 167, "insns": [169, 170], "base": false, "score": 79.87059, "exact": 12}
|
||||
- {"trial": "RGB565-stride-size-pitch-True-early", "unit": "RGB565", "diffs": 167, "insns": [169, 170], "base": false, "score": 79.87059, "exact": 12}
|
||||
- {"trial": "RGB565-stride-size-pitch-True-late", "unit": "RGB565", "diffs": 167, "insns": [169, 170], "base": false, "score": 79.87059, "exact": 12}
|
||||
- {"trial": "RGB565-stride-size-localPitch-False-early", "unit": "RGB565", "diffs": 167, "insns": [169, 170], "base": false, "score": 80.23529, "exact": 12}
|
||||
- {"trial": "RGB565-stride-size-localPitch-False-late", "unit": "RGB565", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.71176, "exact": 12}
|
||||
- {"trial": "RGB565-stride-size-localPitch-True-early", "unit": "RGB565", "diffs": 167, "insns": [169, 170], "base": false, "score": 80.23529, "exact": 12}
|
||||
- {"trial": "RGB565-stride-size-localPitch-True-late", "unit": "RGB565", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.71176, "exact": 12}
|
||||
- {"trial": "RGB565-stride-size-rowSpan-False-early", "unit": "RGB565", "diffs": 167, "insns": [169, 170], "base": false, "score": 80.23529, "exact": 12}
|
||||
- {"trial": "RGB565-stride-size-rowSpan-False-late", "unit": "RGB565", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.71176, "exact": 12}
|
||||
- {"trial": "RGB565-stride-size-rowSpan-True-early", "unit": "RGB565", "diffs": 167, "insns": [169, 170], "base": false, "score": 80.23529, "exact": 12}
|
||||
- {"trial": "RGB565-stride-size-rowSpan-True-late", "unit": "RGB565", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.71176, "exact": 12}
|
||||
- {"trial": "RGBA8-stride-size-pitch-False-early", "unit": "RGBA8", "diffs": 167, "insns": [169, 170], "base": false, "score": 79.87059, "exact": 11}
|
||||
- {"trial": "RGBA8-stride-size-pitch-False-late", "unit": "RGBA8", "diffs": 167, "insns": [169, 170], "base": false, "score": 79.87059, "exact": 11}
|
||||
- {"trial": "RGBA8-stride-size-pitch-True-early", "unit": "RGBA8", "diffs": 167, "insns": [169, 170], "base": false, "score": 79.87059, "exact": 11}
|
||||
- {"trial": "RGBA8-stride-size-pitch-True-late", "unit": "RGBA8", "diffs": 167, "insns": [169, 170], "base": false, "score": 79.87059, "exact": 11}
|
||||
- {"trial": "RGBA8-stride-size-localPitch-False-early", "unit": "RGBA8", "diffs": 167, "insns": [169, 170], "base": false, "score": 80.23529, "exact": 11}
|
||||
- {"trial": "RGBA8-stride-size-localPitch-False-late", "unit": "RGBA8", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.71176, "exact": 11}
|
||||
- {"trial": "RGBA8-stride-size-localPitch-True-early", "unit": "RGBA8", "diffs": 167, "insns": [169, 170], "base": false, "score": 80.23529, "exact": 11}
|
||||
- {"trial": "RGBA8-stride-size-localPitch-True-late", "unit": "RGBA8", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.71176, "exact": 11}
|
||||
- {"trial": "RGBA8-stride-size-rowSpan-False-early", "unit": "RGBA8", "diffs": 167, "insns": [169, 170], "base": false, "score": 80.23529, "exact": 11}
|
||||
- {"trial": "RGBA8-stride-size-rowSpan-False-late", "unit": "RGBA8", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.71176, "exact": 11}
|
||||
- {"trial": "RGBA8-stride-size-rowSpan-True-early", "unit": "RGBA8", "diffs": 167, "insns": [169, 170], "base": false, "score": 80.23529, "exact": 11}
|
||||
- {"trial": "RGBA8-stride-size-rowSpan-True-late", "unit": "RGBA8", "diffs": 168, "insns": [169, 170], "base": false, "score": 85.71176, "exact": 11}
|
||||
- {"trial": "Y8U8V8-stride-size-pitch-False-early", "unit": "Y8U8V8", "diffs": 193, "insns": [195, 196], "base": false, "score": 80.22959, "exact": 12}
|
||||
- {"trial": "Y8U8V8-stride-size-pitch-False-late", "unit": "Y8U8V8", "diffs": 193, "insns": [195, 196], "base": false, "score": 80.22959, "exact": 12}
|
||||
- {"trial": "Y8U8V8-stride-size-pitch-True-early", "unit": "Y8U8V8", "diffs": 193, "insns": [195, 196], "base": false, "score": 80.22959, "exact": 12}
|
||||
- {"trial": "Y8U8V8-stride-size-pitch-True-late", "unit": "Y8U8V8", "diffs": 193, "insns": [195, 196], "base": false, "score": 80.22959, "exact": 12}
|
||||
- {"trial": "Y8U8V8-stride-size-localPitch-False-early", "unit": "Y8U8V8", "diffs": 193, "insns": [195, 196], "base": false, "score": 80.22959, "exact": 12}
|
||||
- {"trial": "Y8U8V8-stride-size-localPitch-False-late", "unit": "Y8U8V8", "diffs": 194, "insns": [195, 196], "base": false, "score": 84.77041, "exact": 12}
|
||||
- {"trial": "Y8U8V8-stride-size-localPitch-True-early", "unit": "Y8U8V8", "diffs": 193, "insns": [195, 196], "base": false, "score": 80.22959, "exact": 12}
|
||||
- {"trial": "Y8U8V8-stride-size-localPitch-True-late", "unit": "Y8U8V8", "diffs": 194, "insns": [195, 196], "base": false, "score": 84.77041, "exact": 12}
|
||||
- {"trial": "Y8U8V8-stride-size-rowSpan-False-early", "unit": "Y8U8V8", "diffs": 193, "insns": [195, 196], "base": false, "score": 80.22959, "exact": 12}
|
||||
- {"trial": "Y8U8V8-stride-size-rowSpan-False-late", "unit": "Y8U8V8", "diffs": 194, "insns": [195, 196], "base": false, "score": 84.77041, "exact": 12}
|
||||
- {"trial": "Y8U8V8-stride-size-rowSpan-True-early", "unit": "Y8U8V8", "diffs": 193, "insns": [195, 196], "base": false, "score": 80.22959, "exact": 12}
|
||||
- {"trial": "Y8U8V8-stride-size-rowSpan-True-late", "unit": "Y8U8V8", "diffs": 194, "insns": [195, 196], "base": false, "score": 84.77041, "exact": 12}
|
||||
- {"trial": "rgba411-pack-s32-outer-s32", "unit": "RGBA8", "diffs": 148, "insns": [242, 242], "base": false, "score": 80.17355, "exact": 11}
|
||||
- {"trial": "rgba411-pack-s32-outer-u8", "unit": "RGBA8", "diffs": 146, "insns": [242, 242], "base": false, "score": 81.82645, "exact": 11}
|
||||
- {"trial": "rgba411-pack-s32-group-s32", "unit": "RGBA8", "diffs": 148, "insns": [242, 242], "base": false, "score": 80.17355, "exact": 11}
|
||||
- {"trial": "rgba411-pack-s32-group-u8", "unit": "RGBA8", "diffs": 146, "insns": [242, 242], "base": false, "score": 81.82645, "exact": 11}
|
||||
- {"trial": "rgba411-pack-s32-pixel-s32", "unit": "RGBA8", "diffs": 148, "insns": [242, 242], "base": false, "score": 80.17355, "exact": 11}
|
||||
- {"trial": "rgba411-pack-s32-pixel-u8", "unit": "RGBA8", "diffs": 146, "insns": [242, 242], "base": false, "score": 81.82645, "exact": 11}
|
||||
- {"trial": "rgba411-pack-u32-outer-s32", "unit": "RGBA8", "diffs": 148, "insns": [242, 242], "base": false, "score": 80.17355, "exact": 11}
|
||||
- {"trial": "rgba411-pack-u32-outer-u8", "unit": "RGBA8", "diffs": 146, "insns": [242, 242], "base": false, "score": 81.82645, "exact": 11}
|
||||
- {"trial": "rgba411-pack-u32-group-s32", "unit": "RGBA8", "diffs": 148, "insns": [242, 242], "base": false, "score": 80.17355, "exact": 11}
|
||||
- {"trial": "rgba411-pack-u32-group-u8", "unit": "RGBA8", "diffs": 146, "insns": [242, 242], "base": false, "score": 81.82645, "exact": 11}
|
||||
- {"trial": "rgba411-pack-u32-pixel-s32", "unit": "RGBA8", "diffs": 148, "insns": [242, 242], "base": false, "score": 80.17355, "exact": 11}
|
||||
- {"trial": "rgba411-pack-u32-pixel-u8", "unit": "RGBA8", "diffs": 146, "insns": [242, 242], "base": false, "score": 81.82645, "exact": 11}
|
||||
- {"trial": "rgba411-pack-u16-outer-s32", "unit": "RGBA8", "diffs": 148, "insns": [242, 242], "base": false, "score": 80.17355, "exact": 11}
|
||||
- {"trial": "rgba411-pack-u16-outer-u8", "unit": "RGBA8", "diffs": 146, "insns": [242, 242], "base": false, "score": 81.82645, "exact": 11}
|
||||
- {"trial": "rgba411-pack-u16-group-s32", "unit": "RGBA8", "diffs": 148, "insns": [242, 242], "base": false, "score": 80.17355, "exact": 11}
|
||||
- {"trial": "rgba411-pack-u16-group-u8", "unit": "RGBA8", "diffs": 146, "insns": [242, 242], "base": false, "score": 81.82645, "exact": 11}
|
||||
- {"trial": "rgba411-pack-u16-pixel-s32", "unit": "RGBA8", "diffs": 148, "insns": [242, 242], "base": false, "score": 80.17355, "exact": 11}
|
||||
- {"trial": "rgba411-pack-u16-pixel-u8", "unit": "RGBA8", "diffs": 146, "insns": [242, 242], "base": false, "score": 81.82645, "exact": 11}
|
||||
- {"trial": "rgba411-plane-indices-outer-s32", "unit": "RGBA8", "diffs": 153, "insns": [242, 242], "base": false, "score": 82.70661, "exact": 11}
|
||||
- {"trial": "rgba411-plane-indices-outer-u32", "unit": "RGBA8", "diffs": 153, "insns": [242, 242], "base": false, "score": 82.70661, "exact": 11}
|
||||
- {"trial": "rgba411-plane-indices-group-s32", "unit": "RGBA8", "diffs": 153, "insns": [242, 242], "base": false, "score": 82.70661, "exact": 11}
|
||||
- {"trial": "rgba411-plane-indices-group-u32", "unit": "RGBA8", "diffs": 153, "insns": [242, 242], "base": false, "score": 82.70661, "exact": 11}
|
||||
- {"trial": "rgba411-plane-indices-pixel-s32", "unit": "RGBA8", "diffs": 153, "insns": [242, 242], "base": false, "score": 82.70661, "exact": 11}
|
||||
- {"trial": "rgba411-plane-indices-pixel-u32", "unit": "RGBA8", "diffs": 153, "insns": [242, 242], "base": false, "score": 82.70661, "exact": 11}
|
||||
|
||||
## Source review and rejected diagnostics
|
||||
|
||||
The initial u8 ySize probes truncated 256 to zero. Their results are invalid and excluded from best-source selection. Corrected sizes use s32/u32/u16. The first typed-layout probes placed typedefs before the type includes and failed to compile; the corrected probes put them after the includes. No failed or semantically invalid source is retained.
|
||||
|
||||
All three setters were tested with per-mode ySize/cSize, actual header/Y/Cb/Cr layout types, pre-switch size selection through conditional/if/switch/shift forms, chroma-plane inline access, and plane sizes derived from the descriptor's pitch or a local row span. The case-local sizes and typed views still fold convBuf into work-relative addresses. Pre-switch size selection adds size-selection operations and still misses the target base. Deriving sizes from pitch changes scheduling and colors but retains 169/170 or 195/196 instructions with no prologue base. No new setter result improves the existing diagnostic saved by sol-tex.
|
||||
|
||||
The other converter units use the byte-array field with literal plane offsets. decapi.c selects the converter functions but never accesses convBuf. Other C sources in this library do not access convBuf. No evidence supports a different shared field definition; the header remains unchanged.
|
||||
|
||||
RGBA411 probes covered per-pixel color identities, separate alpha/GB packing with integer-width and scope variations, and explicit indices for both tiled output planes. Best positional result is 146/242, equal 968-byte size, but official fuzzy is 81.82645 versus 82.70661 baseline. It repeats the earlier packed-pixel diagnostic at the instruction level, so it is rejected. All exact siblings remained exact in the per-trial unit reports. None of these results is a match or a retained gain.
|
||||
|
||||
Restored all owned sources before final verification. No source, header, configure.py, or inventory edit is retained. The queued first tracer was cancelled before it produced a capture, then relaunched with an immutable /tmp/sol-x7-rgba-snapshot.c so later source probes cannot race its compiler input. The debugger permits capture directories only under its own tool root; the first requested in-worktree output path was rejected before execution.
|
||||
|
||||
## Allocator evidence
|
||||
|
||||
Fresh immutable-source capture completed at `/mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/sol-x7-rgba-snapshot`. Its .text and relocations equal the freshly rebuilt normal source object. The only ELF differences are the STT_FILE basename and corresponding string-table indices in .symtab/.strtab; resolved symbol properties otherwise agree. No byte-identical whole-object claim is made. The earlier sol-tex-rgba411 capture also has the same 242-instruction function as the fresh source object.
|
||||
|
||||
The current regsim reproduces 179/179 virtual registers for the fresh capture. A 20,000-step search for lumaSkip=r24, chromaSkip=r23, output=r21, tileRow=r20, redOffset=r12, greenOffset=r31 and blueOffset=r30 reaches 6/7 requested colors. Its proposed order includes compiler-created @ temporaries, so it is not an implementable C declaration order and does not prove impossibility over other source shapes. Evidence: `/tmp/sol-x7-rgba-regsim-fresh.txt`. The independently checked older capture gives the same reproduction and search result. No declaration permutation derived from this diagnostic is retained.
|
||||
|
||||
## Final gate and handoff
|
||||
|
||||
Distinct valid compiled source snapshots, excluding the baselines, invalid u8-size probes and initial typedef compile failures: RGB565 setter 31; Y8U8V8 setter 31; RGBA8 setter 31; RGBA411 43. Duplicate invocations from the corrected driver are excluded. All trials and frozen objects/reports are under `/tmp/sol-x7-trials/`.
|
||||
|
||||
Saved newly tested diagnostics outside the repository as `/mnt/drive2/projects/wii-ipl-workers/_luna-runs/best/sol-x7.Texture_MCUtoRGB565.diff`, `sol-x7.Texture_MCUtoY8U8V8.diff` and `sol-x7.Texture_MCUtoRGBA8.diff`. These are rejected diagnostic shapes, not gains. The earlier sol-tex prologue-base diagnostics are unchanged and remain better for studying base materialization.
|
||||
|
||||
Final restored-source gate: GATE PASS. Initial full 43U Ninja build and final full build both passed. DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d. Every owned pool is empty and identical; zero regressions, zero forbidden additions and zero readability warnings. Gate compared against snapshotted ancestor 22e6bbed, one commit before this leaf's 9321a926 baseline; that intervening commit changes completion accounting, not owned source. Evidence: `/tmp/sol-x7-final-gate.log`.
|
||||
|
||||
Exact counts unchanged: RGB565 12/13, Y8U8V8 12/13, RGBA8 11/13. Linked code is zero for each owned unit, as before. Final exact-name scores remain RGB565/RGBA8 setters 93.91765, Y8U8V8 setter 92.78571, RGBA411 82.70661. Restored-source odiff is respectively 169/170, 169/170, 195/196 and 153/242 differing. No function reached zero differing at equal size. Only this log is committed; owned sources, header and configure.py remain byte-identical to HEAD.
|
||||
|
||||
## Scoped optimization follow-up
|
||||
|
||||
User authorizes exactly one function-scoped optimization_level push/pop per setter. Origin/main 9321a926, all three sources already identical. Preserve other functions and shared headers.
|
||||
- {"trial": "rgb-opt1-baseline", "unit": "RGB565", "diffs": 116, "blind": 21, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-outer-reverse", "unit": "RGB565", "diffs": 116, "blind": 21, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-direct-rows", "unit": "RGB565", "diffs": 181, "blind": 176, "insns": [185, 170]}
|
||||
- {"trial": "rgb-opt1-converters-after-compute", "unit": "RGB565", "diffs": 112, "blind": 14, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-aftercompute-reverse-row-declarations", "unit": "RGB565", "diffs": 113, "blind": 14, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-aftercompute-mode-after-pointers", "unit": "RGB565", "diffs": 114, "blind": 14, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-hoisted-locals", "unit": "RGB565", "diffs": 115, "blind": 23, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-hoisted-converters", "unit": "RGB565", "diffs": 115, "blind": 15, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-inline-cbBlock-crBlock", "unit": "RGB565", "diffs": 108, "blind": 17, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-inline-fourthRow", "unit": "RGB565", "diffs": 114, "blind": 21, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-inline-secondRow", "unit": "RGB565", "diffs": 159, "blind": 138, "insns": [171, 170]}
|
||||
- {"trial": "rgb-opt1-inline-fourthRow-thirdRow", "unit": "RGB565", "diffs": 163, "blind": 148, "insns": [173, 170]}
|
||||
- {"trial": "rgb-opt1-inline-cbBlock-crBlock-fourthRow", "unit": "RGB565", "diffs": 104, "blind": 17, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-stored-rows", "unit": "RGB565", "diffs": 168, "blind": 161, "insns": [166, 170]}
|
||||
- {"trial": "rgb-opt1-cursor", "unit": "RGB565", "diffs": 166, "blind": 155, "insns": [167, 170]}
|
||||
- {"trial": "rgb-opt1-assign-store", "unit": "RGB565", "diffs": 112, "blind": 13, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt0-baseline", "unit": "RGB565", "diffs": 228, "blind": 216, "insns": [230, 170]}
|
||||
- {"trial": "rgb-opt0-stored-rows", "unit": "RGB565", "diffs": 190, "blind": 188, "insns": [191, 170]}
|
||||
- {"trial": "rgb-opt0-assign-store", "unit": "RGB565", "diffs": 213, "blind": 211, "insns": [215, 170]}
|
||||
- {"trial": "rgb-opt0-inline-cbBlock-crBlock-fourthRow", "unit": "RGB565", "diffs": 212, "blind": 211, "insns": [213, 170]}
|
||||
- {"trial": "rgb-opt1-case-converter-first", "unit": "RGB565", "diffs": 112, "blind": 13, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-case-converter-last", "unit": "RGB565", "diffs": 111, "blind": 13, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-reverse-all-pointers", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-reverse-all-and-outer", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-initialized", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-const-state", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-const-buffer", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-late-state", "unit": "RGB565", "diffs": 169, "blind": 167, "insns": [166, 170]}
|
||||
- {"trial": "rgb-opt1-signed-count", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-tail-swap-addends", "unit": "RGB565", "diffs": 54, "blind": 7, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-tail-direct-width-height", "unit": "RGB565", "diffs": 64, "blind": 30, "insns": [172, 170]}
|
||||
- {"trial": "rgb-opt1-tail-rounded-locals", "unit": "RGB565", "diffs": 51, "blind": 5, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-tail-padding-locals", "unit": "RGB565", "diffs": 55, "blind": 7, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-tail-remainders-locals", "unit": "RGB565", "diffs": 57, "blind": 18, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-tail-rounded-assign-back", "unit": "RGB565", "diffs": 52, "blind": 5, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-round-swap-loads", "unit": "RGB565", "diffs": 51, "blind": 5, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-round-swap-rounds", "unit": "RGB565", "diffs": 57, "blind": 12, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-round-swap-addends", "unit": "RGB565", "diffs": 57, "blind": 7, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-round-multiply-first", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-shape-tail-helper", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-shape-case0-outer", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-shape-count-direct", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-shape-dims-outer", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-shape-case3-outer", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-entry-021", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-entry-102", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-entry-120", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-entry-201", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-entry-210", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-finalinline-cbBlock", "unit": "RGB565", "diffs": 58, "blind": 16, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-finalinline-crBlock", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-finalinline-cbBlock-crBlock", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-finalinline-fourthRow-cbBlock-crBlock", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-finalinline-fourthRow-crBlock", "unit": "RGB565", "diffs": 56, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-finalinline-secondRow", "unit": "RGB565", "diffs": 57, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-finalinline-fourthRow", "unit": "RGB565", "diffs": 59, "blind": 13, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-work-copy", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-state-copy", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-state-void", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-state-array", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-buffer-array", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-buffer-s8", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-quotient-divisor-unsigned", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-mod-divisor-long", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-all-unique-first", "unit": "RGB565", "diffs": 50, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-all-unique-last", "unit": "RGB565", "diffs": 17, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-all-unique-between", "unit": "RGB565", "diffs": 17, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-unique-tail-swap-addends", "unit": "RGB565", "diffs": 16, "blind": 7, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-unique-tail-rounded-locals", "unit": "RGB565", "diffs": 18, "blind": 5, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-unique-tail-padding-locals", "unit": "RGB565", "diffs": 22, "blind": 7, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-unique-tail-remainders-locals", "unit": "RGB565", "diffs": 27, "blind": 18, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-unique-tail-rounded-assign-back", "unit": "RGB565", "diffs": 19, "blind": 5, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-unique-round-swap-addends", "unit": "RGB565", "diffs": 25, "blind": 7, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-case3-operand-reverse", "unit": "RGB565", "diffs": 17, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-case3-shift-spelling", "unit": "RGB565", "compile": "FAIL"}
|
||||
- {"trial": "rgb-opt1-case3-shift-fixed", "unit": "RGB565", "diffs": 17, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-case3-mode-u32", "unit": "RGB565", "diffs": 14, "blind": 6, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-case3-offset-local", "unit": "RGB565", "diffs": 17, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-case3-cb-before-second", "unit": "RGB565", "diffs": 17, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-case3-cr-before-second", "unit": "RGB565", "diffs": 17, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-case3-compute-before-converters", "unit": "RGB565", "diffs": 14, "blind": 6, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-case3-second-after-stores", "unit": "RGB565", "diffs": 17, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-case3-array-index", "unit": "RGB565", "diffs": 17, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-round2-dividend-updates", "unit": "RGB565", "diffs": 22, "blind": 15, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-round2-quotient-locals", "unit": "RGB565", "diffs": 22, "blind": 8, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-round2-s32-rounded", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-round2-dimension-copy", "unit": "RGB565", "diffs": 22, "blind": 15, "insns": [170, 170]}
|
||||
- {"trial": "rgb-current-inspect", "unit": "RGB565", "diffs": 22, "blind": 15, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-round3-reverse-round-decls", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-round3-separate-round-decls", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-round3-height-first", "unit": "RGB565", "diffs": 24, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-round3-width-reuse", "unit": "RGB565", "compile": "FAIL"}
|
||||
- {"trial": "rgb-opt1-round3-height-reuse", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-round3-both-reuse", "unit": "RGB565", "diffs": 16, "blind": 2, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-round3-swap-width-expr", "unit": "RGB565", "diffs": 23, "blind": 8, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-round3-swap-height-expr", "unit": "RGB565", "diffs": 16, "blind": 6, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-round3-swap-both-expr", "unit": "RGB565", "diffs": 22, "blind": 4, "insns": [170, 170]}
|
||||
- {"trial": "rgb-s32-rounding-inspect", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-boolean-0", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-boolean-1", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-boolean-2", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-boolean-3", "unit": "RGB565", "diffs": 16, "blind": 4, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-boolean-4", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-boolean-5", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-dimtypes-s32-u32", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-dimtypes-s32-s16", "unit": "RGB565", "diffs": 21, "blind": 6, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-dimtypes-s32-u16", "unit": "RGB565", "diffs": 21, "blind": 5, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-dimtypes-u32-s32", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-dimtypes-u32-u32", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-dimtypes-u32-s16", "unit": "RGB565", "diffs": 21, "blind": 6, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-dimtypes-u32-u16", "unit": "RGB565", "diffs": 21, "blind": 5, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-dimtypes-s16-s32", "unit": "RGB565", "diffs": 21, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-dimtypes-s16-u32", "unit": "RGB565", "diffs": 21, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-dimtypes-s16-s16", "unit": "RGB565", "diffs": 21, "blind": 4, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-dimtypes-s16-u16", "unit": "RGB565", "diffs": 16, "blind": 3, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-dimtypes-u16-s32", "unit": "RGB565", "diffs": 21, "blind": 7, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-dimtypes-u16-u32", "unit": "RGB565", "diffs": 21, "blind": 7, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-dimtypes-u16-s16", "unit": "RGB565", "diffs": 16, "blind": 3, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-dimtypes-u16-u16", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-minhoist-0", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-minhoist-1", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-minhoist-2", "unit": "RGB565", "diffs": 70, "blind": 29, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-minhoist-3", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-minhoist-4", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-minhoist-5", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-minhoist-01", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-minhoist-02", "unit": "RGB565", "diffs": 70, "blind": 29, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-minhoist-03", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-minhoist-04", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-minhoist-05", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-minhoist-12", "unit": "RGB565", "diffs": 70, "blind": 29, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-minhoist-13", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-minhoist-14", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-minhoist-15", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-minhoist-23", "unit": "RGB565", "diffs": 70, "blind": 29, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-minhoist-24", "unit": "RGB565", "diffs": 70, "blind": 29, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-minhoist-25", "unit": "RGB565", "diffs": 70, "blind": 29, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-minhoist-34", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-minhoist-35", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-minhoist-45", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-minhoist-012", "unit": "RGB565", "diffs": 14, "blind": 6, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-minhoist-013", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-minhoist-014", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-minhoist-015", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-minhoist-023", "unit": "RGB565", "diffs": 14, "blind": 6, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-minhoist-024", "unit": "RGB565", "diffs": 70, "blind": 29, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-minhoist-025", "unit": "RGB565", "diffs": 70, "blind": 29, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-minhoist-034", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-minhoist-035", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-minhoist-045", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-minhoist-123", "unit": "RGB565", "diffs": 70, "blind": 29, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-minhoist-124", "unit": "RGB565", "diffs": 70, "blind": 29, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-minhoist-125", "unit": "RGB565", "diffs": 70, "blind": 29, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-minhoist-134", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-minhoist-135", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-minhoist-145", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-minhoist-234", "unit": "RGB565", "diffs": 70, "blind": 29, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-minhoist-235", "unit": "RGB565", "diffs": 70, "blind": 29, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-minhoist-245", "unit": "RGB565", "diffs": 70, "blind": 29, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-minhoist-345", "unit": "RGB565", "diffs": 48, "blind": 6, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-real-round-helper-0", "unit": "RGB565", "diffs": 14, "blind": 6, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-real-round-helper-1", "unit": "RGB565", "diffs": 21, "blind": 12, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-real-round-helper-2", "unit": "RGB565", "diffs": 14, "blind": 6, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-real-round-helper-3", "unit": "RGB565", "diffs": 19, "blind": 15, "insns": [170, 170]}
|
||||
- {"trial": "RGBA8-opt1-baseline", "unit": "RGBA8", "diffs": 116, "blind": 21, "insns": [170, 170]}
|
||||
- {"trial": "RGBA8-opt1-global-source-order", "unit": "RGBA8", "diffs": 14, "blind": 6, "insns": [170, 170]}
|
||||
- {"trial": "RGBA8-opt1-s32-rounds", "unit": "RGBA8", "diffs": 15, "blind": 2, "insns": [170, 170]}
|
||||
- {"trial": "RGBA8-opt1-signed-dimensions-quotient-last", "unit": "RGBA8", "diffs": 15, "blind": 2, "insns": [170, 170]}
|
||||
- {"trial": "RGBA8-opt1-swap-addends", "unit": "RGBA8", "diffs": 13, "blind": 4, "insns": [170, 170]}
|
||||
- {"trial": "RGBA8-opt1-opt0", "unit": "RGBA8", "diffs": 238, "blind": 231, "insns": [240, 170]}
|
||||
- {"trial": "Y8U8V8-opt1-baseline", "unit": "Y8U8V8", "diffs": 134, "blind": 27, "insns": [196, 196]}
|
||||
- {"trial": "Y8U8V8-opt1-global-source-order", "unit": "Y8U8V8", "diffs": 28, "blind": 12, "insns": [196, 196]}
|
||||
- {"trial": "Y8U8V8-opt1-s32-rounds", "unit": "Y8U8V8", "compile": "FAIL"}
|
||||
- {"trial": "Y8U8V8-opt1-signed-dimensions-quotient-last", "unit": "Y8U8V8", "compile": "FAIL"}
|
||||
- {"trial": "Y8U8V8-opt1-swap-addends", "unit": "Y8U8V8", "diffs": 26, "blind": 8, "insns": [196, 196]}
|
||||
- {"trial": "Y8U8V8-opt1-opt0", "unit": "Y8U8V8", "diffs": 263, "blind": 259, "insns": [265, 196]}
|
||||
- {"trial": "rgb-opt1-shiftround-1", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-shiftround-2", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-shiftround-3", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-shiftround-4", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-shiftround-5", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-shiftround-6", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-shiftround-7", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-shiftround-8", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-shiftround-9", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-shiftround-10", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-shiftround-11", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-shiftround-12", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-shiftround-13", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-shiftround-14", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-shiftround-15", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-round4-width-only", "unit": "RGB565", "diffs": 14, "blind": 6, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-round4-height-only", "unit": "RGB565", "diffs": 24, "blind": 9, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-round4-height-only-separate", "unit": "RGB565", "diffs": 14, "blind": 6, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-round4-width-only-quot", "unit": "RGB565", "diffs": 14, "blind": 6, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-round4-height-only-quot", "unit": "RGB565", "diffs": 22, "blind": 8, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-round4-height-unsigned", "unit": "RGB565", "diffs": 15, "blind": 2, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-asymmetric-u32-1", "unit": "RGB565", "diffs": 22, "blind": 12, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-asymmetric-u32-2", "unit": "RGB565", "diffs": 4, "blind": 4, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-asymmetric-u32-3", "unit": "RGB565", "diffs": 13, "blind": 4, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-asymmetric-rounded-1", "unit": "RGB565", "diffs": 23, "blind": 8, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-asymmetric-rounded-2", "unit": "RGB565", "diffs": 16, "blind": 6, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-asymmetric-rounded-3", "unit": "RGB565", "diffs": 22, "blind": 4, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-asymmetric-only-1", "unit": "RGB565", "diffs": 22, "blind": 12, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-asymmetric-only-2", "unit": "RGB565", "diffs": 4, "blind": 4, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-asymmetric-only-3", "unit": "RGB565", "diffs": 13, "blind": 4, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-last4-height-padding-after", "unit": "RGB565", "diffs": 4, "blind": 4, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-last4-height-padding-before", "unit": "RGB565", "diffs": 21, "blind": 7, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-last4-height-rounded-after", "unit": "RGB565", "diffs": 4, "blind": 4, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-last4-both-round-before", "unit": "RGB565", "diffs": 16, "blind": 6, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-last4-height-quot-after", "unit": "RGB565", "diffs": 22, "blind": 8, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-last4-height-compare-unsigned", "unit": "RGB565", "diffs": 4, "blind": 4, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-last4-height-compare-signed", "unit": "RGB565", "diffs": 4, "blind": 4, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-last4-multiply-negative", "unit": "RGB565", "diffs": 4, "blind": 4, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-last4-height-helper", "unit": "RGB565", "diffs": 4, "blind": 4, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-width-round-height-pad-s32-s32-0", "unit": "RGB565", "diffs": 0, "blind": 0, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-width-round-height-pad-s32-s32-1", "unit": "RGB565", "diffs": 0, "blind": 0, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-width-round-height-pad-s32-u32-0", "unit": "RGB565", "diffs": 0, "blind": 0, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-width-round-height-pad-s32-u32-1", "unit": "RGB565", "diffs": 0, "blind": 0, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-width-round-height-pad-u32-s32-0", "unit": "RGB565", "diffs": 0, "blind": 0, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-width-round-height-pad-u32-s32-1", "unit": "RGB565", "diffs": 0, "blind": 0, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-width-round-height-pad-u32-u32-0", "unit": "RGB565", "diffs": 0, "blind": 0, "insns": [170, 170]}
|
||||
- {"trial": "rgb-opt1-width-round-height-pad-u32-u32-1", "unit": "RGB565", "diffs": 0, "blind": 0, "insns": [170, 170]}
|
||||
- {"trial": "rgb-exact-confirm", "unit": "RGB565", "diffs": 0, "blind": 0, "insns": [170, 170]}
|
||||
- {"trial": "rgb-exact-minhoist-012", "unit": "RGB565", "diffs": 0, "blind": 0, "insns": [170, 170]}
|
||||
- {"trial": "rgb-exact-minhoist-023", "unit": "RGB565", "diffs": 0, "blind": 0, "insns": [170, 170]}
|
||||
- {"trial": "RGBA8-exact-transfer", "unit": "RGBA8", "diffs": 0, "blind": 0, "insns": [170, 170]}
|
||||
- {"trial": "Y8U8V8-exact-transfer", "unit": "Y8U8V8", "diffs": 0, "blind": 0, "insns": [196, 196]}
|
||||
- {"trial": "RGB565-final-minimal", "unit": "RGB565", "diffs": 0, "blind": 0, "insns": [170, 170]}
|
||||
- {"trial": "RGBA8-final-minimal", "unit": "RGBA8", "diffs": 0, "blind": 0, "insns": [170, 170]}
|
||||
- {"trial": "Y8U8V8-final-minimal", "unit": "Y8U8V8", "diffs": 0, "blind": 0, "insns": [196, 196]}
|
||||
|
||||
## Exact source and review
|
||||
|
||||
All three setters reach exact-name objdiff 100.0 and ctxdiff diffs 0 at target counts 170, 196, 170. Empty pools identical. RGB565 and Y8U8V8 reach 13/13; RGBA8 reaches 12/13 and retains its prior open 411 converter unchanged. Scope each optimization_level 1 push/pop to the setter only. No shared header edit or other converter body edit.
|
||||
|
||||
Changes are real converter pointer locals, reverse pointer declaration order, C89 declarations for the 411/422/420 cases before buffer/state, converter stores before row stores, a widened unsigned mode local for the 211 row stride, and separate roundedWidth and heightPadding calculations before the dimension stores. Y8U8V8 applies the same calculations to both dimension pairs, using 8 for widths and 4 for heights. Source groups 012 and 023 both preserve exactness; retain 012, which relocates fewer declarations than the all-case diagnostic.
|
||||
|
||||
Signed short dimension probes are semantically invalid for JPEG dimensions above 32767 and excluded from candidate selection. The unparenthesized row-shift probe failed compilation. Initial planar rounded-local probes violated C89 declaration placement and failed compilation; the final explicit assignments follow all declarations. No invalid or failed candidate is retained.
|
||||
|
||||
Instruction and symbol order verified independently before the Matching flips. Symorder ORDER OK for all three units, 13 identical text symbols each. RGB565 and Y8U8V8 are set Matching, pending full DOL verification; RGBA8 stays NonMatching.
|
||||
|
||||
Live gate.py currently lists optimization_level in NOTES as a per-function optimization review note, not HACKS. Report the actual final gate output; do not change the gate.
|
||||
|
||||
## Final scoped-optimization gate
|
||||
|
||||
Final source review confirms all 12 sibling converter bodies in each unit are byte-identical to origin/main. Each source contains exactly one push/optimization_level 1/pop scope surrounding its setter. No helper, header, artificial assembly or inventory change remains.
|
||||
|
||||
The signed height remainder is evaluated into heightPadding before the unsigned height quotient and after the width tile count, then width and height are stored in target order. This fixes both srwi scheduling and register reuse. JPEG dimensions are u16, so s32 roundedWidth fits for all input values; positive dimensions and pointer arithmetic preserve the original values.
|
||||
|
||||
Compiled unique source snapshots in the follow-up, excluding signed-short dimension diagnostics: {"RGB565": 200, "Y8U8V8": 7, "RGBA8": 9}. Frozen sources, objects, build diagnostics and disassemblies remain in /tmp/sol-x7-opt/. Initial and near-exact immutable MWCC captures are /mnt/drive2/projects/wii-ipl-workers/_mwdbg/runs/sol-x7-opt-rgb and sol-x7-opt-rgb-round. The initial allocator simulator reproduces 96/96 nodes; it predicts buffer/state can swap only after broader declaration changes, implemented with actual C89 locals. The near-exact capture supplies the tail creation-order evidence.
|
||||
|
||||
Fresh ninja progress build/43U/report.json build/43U/ok succeeded. No other unit's report differs from the saved scoped-RGB checkpoint. RGB565 links all 6184 code bytes; Y8U8V8 links all 15948 code bytes, a total of 22132 newly linked bytes. Both units have no data sections and matched_data_percent 100.0. RGBA8 remains unlinked because its unchanged 411 converter is 82.70661. Three setters add 2144 exactly matched code bytes.
|
||||
|
||||
Final gate evidence from /tmp/sol-x7-opt-final-gate.log:
|
||||
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] objdiff: code 6184/6184 data None/None functions 13/13 fuzzy 100.0000 linked code 6184
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] instruction-exact functions: 13/13
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] section .text size 6184 match 100.0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565] baseline: code 5504/6184 data None functions 12 fuzzy 99.3312
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] objdiff: code 15948/15948 data None/None functions 13/13 fuzzy 100.0000 linked code 15948
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] instruction-exact functions: 13/13
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] section .text size 15948 match 100.0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8] baseline: code 15164/15948 data None functions 12 fuzzy 99.6453
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] pool: IDENTICAL
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] objdiff: code 5628/6596 data None/None functions 12/13 fuzzy 97.4621 linked code 0
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] instruction-exact functions: 12/13
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] section .text size 6596 match 97.4621
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] below 100: TMCJPEGDEC_converterYUV411toRGBA8 82.70661
|
||||
[libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8] baseline: code 4948/6596 data None functions 11 fuzzy 96.8350
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 97.58331 -> 97.65490
|
||||
global fuzzy_match_percent: 99.89996 -> 99.90462
|
||||
global complete_code_percent: 88.95958 -> 89.69850
|
||||
global matched_data_percent: 100.00000 -> 100.00000
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
review note: libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGB565.c: per-function optimization pragma (levers 26: orchestrator checks the per-use address recompute evidence) (+1 net), e.g. #pragma optimization_level 1
|
||||
review note: libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoRGBA8.c: per-function optimization pragma (levers 26: orchestrator checks the per-use address recompute evidence) (+1 net), e.g. #pragma optimization_level 1
|
||||
review note: libs/RVLMiddleware/TMC_JPEG/src/texturecvtr/Texture_MCUtoY8U8V8.c: per-function optimization pragma (levers 26: orchestrator checks the per-use address recompute evidence) (+1 net), e.g. #pragma optimization_level 1
|
||||
note: config touched: configure.py (orchestrator reviews every config/symbols change)
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
No automatic pragma failure occurred. The three actual gate lines are review notes for per-function optimization pragmas. No gate or external tool was edited. Final DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d.
|
||||
|
||||
Local RGB565 exact-setter commit: 5315fa04. The near-exact allocator simulator reproduces 95/95 virtual registers. Y8U8V8 is committed next with both fully exact unit Matching flips; the final gate above covers this source and configuration.
|
||||
|
||||
Local Y8U8V8 exact-setter and Matching-flips commit: 9bb9d719. The RGBA8 setter is exact and committed next; its unchanged 411 converter remains open, so RGBA8 stays NonMatching. All final source was independently rebuilt and gated before these local commits; commits introduce no further code changes.
|
||||
@@ -15,3 +15,16 @@ Initial reconstruction uses the sibling tiString and tiUtil headers, real member
|
||||
|
||||
## character predicates
|
||||
The sibling util declarations return bool, while target callers normalize an integer result. Guarded u32 declarations preserve every other translation unit and make all three predicates 16/16 with zero differences.
|
||||
|
||||
## inputChar (w1010 orchestrator probe) — indexed-store + dead-compare fossil
|
||||
Orig mode==3 block (this->0x24==3) emits: `sth r6,0x10` (input[0]=0, r6=0 reused as
|
||||
value), `cmplwi r4,0xa` (DEAD compare — no branch consumes it), then indexed stores
|
||||
`slwi r0,r6,1; sthx r4,buf,r0; addi r6,1; slwi r0,r6,1; clrlwi r29,r6,0x10; sthx r5,buf,r0`
|
||||
= input[i]=ch; i++; input[i]=0 with the index kept SYMBOLIC despite li i,0.
|
||||
Ours: direct-offset `sth r4,0x10; li r29,1; sth r5,0x12` (125 vs 136 insns).
|
||||
Tried: `input[i]=ch; i++; input[i]=0; count=i` — MWCC constant-folds i to 0,
|
||||
re-emits direct offsets. Index must be runtime-opaque in orig (loop bound from a
|
||||
call result, or a non-foldable form). Dead `cmplwi r4,0xa` matches the documented
|
||||
dead-compare-fossil family (both-branch merge). Also: count lands in r29 via
|
||||
clrlwi (u16) — count is i.
|
||||
Unresolved: what source produces symbolic-index stores + dead compare.
|
||||
|
||||
@@ -182,12 +182,10 @@ class WorkflowGuardTests(unittest.TestCase):
|
||||
failures = check_report(report)
|
||||
self.assertFalse(any("enc_dummy section .sbss" in failure for failure in failures))
|
||||
|
||||
@unittest.skipUnless(
|
||||
(Path(__file__).resolve().parents[1] / "build/43U/report.json").is_file(),
|
||||
"generated 43U report is not available",
|
||||
)
|
||||
def test_complete_report_schema_passes(self):
|
||||
def complete_report(self):
|
||||
report_path = Path(__file__).resolve().parents[1] / "build/43U/report.json"
|
||||
if not report_path.is_file():
|
||||
self.skipTest("generated 43U report is not available")
|
||||
report = copy.deepcopy(json.loads(report_path.read_text(encoding="utf-8")))
|
||||
|
||||
def fill(measures):
|
||||
@@ -230,7 +228,36 @@ class WorkflowGuardTests(unittest.TestCase):
|
||||
function["fuzzy_match_percent"] = 100.0
|
||||
for category in report["categories"]:
|
||||
fill(category["measures"])
|
||||
self.assertEqual(check_report(report), [])
|
||||
return report
|
||||
|
||||
def test_complete_report_schema_passes(self):
|
||||
self.assertEqual(check_report(self.complete_report()), [])
|
||||
|
||||
def test_missing_or_extra_unit_fails(self):
|
||||
for total_units in (1027, 1029):
|
||||
with self.subTest(total_units=total_units):
|
||||
report = self.complete_report()
|
||||
if total_units == 1027:
|
||||
report["units"].pop()
|
||||
else:
|
||||
extra = copy.deepcopy(report["units"][-1])
|
||||
extra["name"] += "/extra"
|
||||
report["units"].append(extra)
|
||||
failures = check_report(report)
|
||||
self.assertIn(f"unit report length: {total_units}", failures)
|
||||
self.assertIn(f"unit aggregate total_units: {total_units} != 1028", failures)
|
||||
|
||||
def test_wrong_unit_totals_fail(self):
|
||||
for total_units in (1027, 1029):
|
||||
with self.subTest(total_units=total_units):
|
||||
report = self.complete_report()
|
||||
delta = total_units - 1028
|
||||
for field in ("total_units", "complete_units"):
|
||||
report["measures"][field] = total_units
|
||||
report["categories"][0]["measures"][field] += delta
|
||||
failures = check_report(report)
|
||||
self.assertIn(f"overall total_units: {total_units} != 1028", failures)
|
||||
self.assertIn(f"category total_units: {total_units} != 1028", failures)
|
||||
|
||||
@unittest.skipUnless(
|
||||
(Path(__file__).resolve().parents[1] / "build/43U/report.json").is_file(),
|
||||
|
||||
Reference in New Issue
Block a user