Update tests

This commit is contained in:
angie 2023-05-04 14:00:56 -04:00
parent 619eba0c4a
commit 3bc66eb98d
3 changed files with 6 additions and 5 deletions

View File

@ -57,6 +57,7 @@ const char *RabInstrIdType_Names[] = {
[RAB_INSTR_ID_TYPE_R5900_MMI_1] = "R5900" "_" "MMI_1",
[RAB_INSTR_ID_TYPE_R5900_MMI_2] = "R5900" "_" "MMI_2",
[RAB_INSTR_ID_TYPE_R5900_MMI_3] = "R5900" "_" "MMI_3",
[RAB_INSTR_ID_TYPE_ALL_MAX] = "ALL" "_" "MAX",
};
#endif

View File

@ -55,9 +55,9 @@ const TestEntry entries[] = {
{ 0x8F858028, "%got(STR_10007C90)", "lw $a1, %got(STR_10007C90)($gp)"},
// Invalid instructions
{ 0x44444444, NULL, ".word 0x44444444 # cfc1 $a0, $8 # 00000444" },
{ 0x77777777, NULL, ".word 0x77777777 # INVALID $k1, $s7, 0x7777 # 00000000" },
{ 0xEEEEEEEE, NULL, ".word 0xEEEEEEEE # INVALID $s7, $t6, -0x1112 # 00000000" },
{ 0x44444444, NULL, ".word 0x44444444 # cfc1 $a0, $8 # 00000444 <InstrIdType: CPU_COP1>" },
{ 0x77777777, NULL, ".word 0x77777777 # INVALID $k1, $s7, 0x7777 # 00000000 <InstrIdType: CPU_NORMAL>" },
{ 0xEEEEEEEE, NULL, ".word 0xEEEEEEEE # INVALID $s7, $t6, -0x1112 # 00000000 <InstrIdType: CPU_NORMAL>" },
};
int main() {

View File

@ -16,8 +16,8 @@ typedef struct TestEntry {
const TestEntry entries[] = {
{ 0x4600600D, true, ".word 0x4600600D # trunc.w.s $f0, $f12 # 00000000" },
{ 0x46006024, true, ".word 0x46006024 # cvt.w.s $f0, $f12 # 00000000" },
{ 0x4600600D, true, ".word 0x4600600D # trunc.w.s $f0, $f12 # 00000000 <InstrIdType: CPU_COP1_FPUS>" },
{ 0x46006024, true, ".word 0x46006024 # cvt.w.s $f0, $f12 # 00000000 <InstrIdType: CPU_COP1_FPUS>" },
{ 0x4600600D, false, "trunc.w.s $f0, $f12" },
{ 0x46006024, false, "cvt.w.s $f0, $f12" },
};