mirror of
https://github.com/Decompollaborate/rabbitizer.git
synced 2025-01-29 21:32:45 +00:00
Update tests
This commit is contained in:
parent
619eba0c4a
commit
3bc66eb98d
1
include/generated/InstrIdType_Names_array.h
generated
1
include/generated/InstrIdType_Names_array.h
generated
@ -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
|
||||
|
@ -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() {
|
||||
|
@ -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" },
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user