Skip to content

Commit

Permalink
Fix tests?
Browse files Browse the repository at this point in the history
  • Loading branch information
AngheloAlf committed Apr 13, 2024
1 parent e104dde commit f1b9ff7
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 33 deletions.
32 changes: 0 additions & 32 deletions asdf.txt

This file was deleted.

1 change: 0 additions & 1 deletion asdfasdf.txt

This file was deleted.

36 changes: 36 additions & 0 deletions tests/c/instruction_checks/r4000allegrex_vfpu_disasm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1117,6 +1117,8 @@ const TestEntry test_entries[] = {
TEST_ENTRY_C(0xD89E0041, NULL, "lv.q R702, 0x40($a0)"),
TEST_ENTRY_C(0xD89F0041, NULL, "lv.q R703, 0x40($a0)"),

// According to the manual those should be invalid, but the sn objdump is happy with them, so idk
#if 0
TEST_ENTRY_C(0xD8800042, NULL, "lv.q C000, 0x40($a0)"),
TEST_ENTRY_C(0xD8810042, NULL, "lv.q C010, 0x40($a0)"),
TEST_ENTRY_C(0xD8820042, NULL, "lv.q C020, 0x40($a0)"),
Expand Down Expand Up @@ -1149,6 +1151,40 @@ const TestEntry test_entries[] = {
TEST_ENTRY_C(0xD89D0042, NULL, "lv.q C710, 0x40($a0)"),
TEST_ENTRY_C(0xD89E0042, NULL, "lv.q C720, 0x40($a0)"),
TEST_ENTRY_C(0xD89F0042, NULL, "lv.q C730, 0x40($a0)"),
#else
TEST_ENTRY_C(0xD8800042, NULL, ".word 0xD8800042 # lv.q C000, 0x40($a0) # 00000002 <InstrIdType: R4000ALLEGREX_NORMAL>"),
TEST_ENTRY_C(0xD8810042, NULL, ".word 0xD8810042 # lv.q C010, 0x40($a0) # 00000002 <InstrIdType: R4000ALLEGREX_NORMAL>"),
TEST_ENTRY_C(0xD8820042, NULL, ".word 0xD8820042 # lv.q C020, 0x40($a0) # 00000002 <InstrIdType: R4000ALLEGREX_NORMAL>"),
TEST_ENTRY_C(0xD8830042, NULL, ".word 0xD8830042 # lv.q C030, 0x40($a0) # 00000002 <InstrIdType: R4000ALLEGREX_NORMAL>"),
TEST_ENTRY_C(0xD8840042, NULL, ".word 0xD8840042 # lv.q C100, 0x40($a0) # 00000002 <InstrIdType: R4000ALLEGREX_NORMAL>"),
TEST_ENTRY_C(0xD8850042, NULL, ".word 0xD8850042 # lv.q C110, 0x40($a0) # 00000002 <InstrIdType: R4000ALLEGREX_NORMAL>"),
TEST_ENTRY_C(0xD8860042, NULL, ".word 0xD8860042 # lv.q C120, 0x40($a0) # 00000002 <InstrIdType: R4000ALLEGREX_NORMAL>"),
TEST_ENTRY_C(0xD8870042, NULL, ".word 0xD8870042 # lv.q C130, 0x40($a0) # 00000002 <InstrIdType: R4000ALLEGREX_NORMAL>"),
TEST_ENTRY_C(0xD8880042, NULL, ".word 0xD8880042 # lv.q C200, 0x40($a0) # 00000002 <InstrIdType: R4000ALLEGREX_NORMAL>"),
TEST_ENTRY_C(0xD8890042, NULL, ".word 0xD8890042 # lv.q C210, 0x40($a0) # 00000002 <InstrIdType: R4000ALLEGREX_NORMAL>"),
TEST_ENTRY_C(0xD88A0042, NULL, ".word 0xD88A0042 # lv.q C220, 0x40($a0) # 00000002 <InstrIdType: R4000ALLEGREX_NORMAL>"),
TEST_ENTRY_C(0xD88B0042, NULL, ".word 0xD88B0042 # lv.q C230, 0x40($a0) # 00000002 <InstrIdType: R4000ALLEGREX_NORMAL>"),
TEST_ENTRY_C(0xD88C0042, NULL, ".word 0xD88C0042 # lv.q C300, 0x40($a0) # 00000002 <InstrIdType: R4000ALLEGREX_NORMAL>"),
TEST_ENTRY_C(0xD88D0042, NULL, ".word 0xD88D0042 # lv.q C310, 0x40($a0) # 00000002 <InstrIdType: R4000ALLEGREX_NORMAL>"),
TEST_ENTRY_C(0xD88E0042, NULL, ".word 0xD88E0042 # lv.q C320, 0x40($a0) # 00000002 <InstrIdType: R4000ALLEGREX_NORMAL>"),
TEST_ENTRY_C(0xD88F0042, NULL, ".word 0xD88F0042 # lv.q C330, 0x40($a0) # 00000002 <InstrIdType: R4000ALLEGREX_NORMAL>"),
TEST_ENTRY_C(0xD8900042, NULL, ".word 0xD8900042 # lv.q C400, 0x40($a0) # 00000002 <InstrIdType: R4000ALLEGREX_NORMAL>"),
TEST_ENTRY_C(0xD8910042, NULL, ".word 0xD8910042 # lv.q C410, 0x40($a0) # 00000002 <InstrIdType: R4000ALLEGREX_NORMAL>"),
TEST_ENTRY_C(0xD8920042, NULL, ".word 0xD8920042 # lv.q C420, 0x40($a0) # 00000002 <InstrIdType: R4000ALLEGREX_NORMAL>"),
TEST_ENTRY_C(0xD8930042, NULL, ".word 0xD8930042 # lv.q C430, 0x40($a0) # 00000002 <InstrIdType: R4000ALLEGREX_NORMAL>"),
TEST_ENTRY_C(0xD8940042, NULL, ".word 0xD8940042 # lv.q C500, 0x40($a0) # 00000002 <InstrIdType: R4000ALLEGREX_NORMAL>"),
TEST_ENTRY_C(0xD8950042, NULL, ".word 0xD8950042 # lv.q C510, 0x40($a0) # 00000002 <InstrIdType: R4000ALLEGREX_NORMAL>"),
TEST_ENTRY_C(0xD8960042, NULL, ".word 0xD8960042 # lv.q C520, 0x40($a0) # 00000002 <InstrIdType: R4000ALLEGREX_NORMAL>"),
TEST_ENTRY_C(0xD8970042, NULL, ".word 0xD8970042 # lv.q C530, 0x40($a0) # 00000002 <InstrIdType: R4000ALLEGREX_NORMAL>"),
TEST_ENTRY_C(0xD8980042, NULL, ".word 0xD8980042 # lv.q C600, 0x40($a0) # 00000002 <InstrIdType: R4000ALLEGREX_NORMAL>"),
TEST_ENTRY_C(0xD8990042, NULL, ".word 0xD8990042 # lv.q C610, 0x40($a0) # 00000002 <InstrIdType: R4000ALLEGREX_NORMAL>"),
TEST_ENTRY_C(0xD89A0042, NULL, ".word 0xD89A0042 # lv.q C620, 0x40($a0) # 00000002 <InstrIdType: R4000ALLEGREX_NORMAL>"),
TEST_ENTRY_C(0xD89B0042, NULL, ".word 0xD89B0042 # lv.q C630, 0x40($a0) # 00000002 <InstrIdType: R4000ALLEGREX_NORMAL>"),
TEST_ENTRY_C(0xD89C0042, NULL, ".word 0xD89C0042 # lv.q C700, 0x40($a0) # 00000002 <InstrIdType: R4000ALLEGREX_NORMAL>"),
TEST_ENTRY_C(0xD89D0042, NULL, ".word 0xD89D0042 # lv.q C710, 0x40($a0) # 00000002 <InstrIdType: R4000ALLEGREX_NORMAL>"),
TEST_ENTRY_C(0xD89E0042, NULL, ".word 0xD89E0042 # lv.q C720, 0x40($a0) # 00000002 <InstrIdType: R4000ALLEGREX_NORMAL>"),
TEST_ENTRY_C(0xD89F0042, NULL, ".word 0xD89F0042 # lv.q C730, 0x40($a0) # 00000002 <InstrIdType: R4000ALLEGREX_NORMAL>"),
#endif

TEST_ENTRY_C(0x48640004, NULL, "mfv $a0, S100"),
TEST_ENTRY_C(0x48640080, NULL, "mfvc $a0, $128"),
Expand Down

0 comments on commit f1b9ff7

Please sign in to comment.