Skip to content

Commit

Permalink
unitests/ASM: Removes unused MemoryRegion configs
Browse files Browse the repository at this point in the history
FEX's ASM unitests had the problem that they were copy and pasted
templates and MemoryRegion was copied in to almost all tests.

Very few tests actually use the MemoryRegion they were asking for and
instead used none, or the hardcoded memory regions that the
TestHarnessRunner provides.

This is entirely a sed replacement and minor fixups plus reverts for the
few tests that actually use the region asked for.
  • Loading branch information
Sonicadvance1 committed Oct 8, 2024
1 parent 6a07ea7 commit 7c6444c
Show file tree
Hide file tree
Showing 912 changed files with 0 additions and 2,736 deletions.
3 changes: 0 additions & 3 deletions unittests/ASM/CALL.asm
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
"RegData": {
"RAX": "1",
"RBX": "2"
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
Expand Down
3 changes: 0 additions & 3 deletions unittests/ASM/ConstProp/ConstPooling.asm
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"Match": "All",
"RegData": {
"RAX": "0xf"
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
Expand Down
3 changes: 0 additions & 3 deletions unittests/ASM/H0F38/0_F0.asm
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
"R15": "0x4142434445465857",
"R14": "0x0000000058575655",
"R13": "0x5857565554535251"
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
Expand Down
3 changes: 0 additions & 3 deletions unittests/ASM/H0F38/0_F1.asm
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
"R15": "0x4142434445465857",
"R14": "0x4142434458575655",
"R13": "0x5857565554535251"
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
Expand Down
3 changes: 0 additions & 3 deletions unittests/ASM/H0F38/66_38.asm
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"RegData": {
"XMM0": ["0x4142434445464748", "0x5152535455565758"],
"XMM1": ["0x4142434445464748", "0x5152535455565758"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
Expand Down
3 changes: 0 additions & 3 deletions unittests/ASM/H0F38/66_39.asm
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"RegData": {
"XMM0": ["0x4142434445464748", "0x5152535455565758"],
"XMM1": ["0x4142434445464748", "0x5152535455565758"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
Expand Down
3 changes: 0 additions & 3 deletions unittests/ASM/H0F38/66_3A.asm
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"RegData": {
"XMM0": ["0x4142434445464748", "0x5152535455565758"],
"XMM1": ["0x4142434445464748", "0x5152535455565758"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
Expand Down
3 changes: 0 additions & 3 deletions unittests/ASM/H0F38/66_3B.asm
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"RegData": {
"XMM0": ["0x4142434445464748", "0x5152535455565758"],
"XMM1": ["0x4142434445464748", "0x5152535455565758"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
Expand Down
3 changes: 0 additions & 3 deletions unittests/ASM/H0F38/66_3C.asm
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"RegData": {
"XMM0": ["0x6162636465666768", "0x7172737475767778"],
"XMM1": ["0x6162636465666768", "0x7172737475767778"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
Expand Down
3 changes: 0 additions & 3 deletions unittests/ASM/H0F38/66_3D.asm
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"RegData": {
"XMM0": ["0x6162636465666768", "0x7172737475767778"],
"XMM1": ["0x6162636465666768", "0x7172737475767778"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
Expand Down
3 changes: 0 additions & 3 deletions unittests/ASM/H0F38/66_3E.asm
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"RegData": {
"XMM0": ["0x6162636465666768", "0x7172737475767778"],
"XMM1": ["0x6162636465666768", "0x7172737475767778"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
Expand Down
3 changes: 0 additions & 3 deletions unittests/ASM/H0F38/66_3F.asm
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"RegData": {
"XMM0": ["0x6162636465666768", "0x7172737475767778"],
"XMM1": ["0x6162636465666768", "0x7172737475767778"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
Expand Down
3 changes: 0 additions & 3 deletions unittests/ASM/H0F38/66_41.asm
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
"XMM1": ["0x0000000000030001", "0x0"],
"XMM2": ["0x0000000000070001", "0x0"],
"XMM3": ["0x0000000000010001", "0x0"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
Expand Down
3 changes: 0 additions & 3 deletions unittests/ASM/H0F3A/0_66_0F.asm
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
"XMM3": ["0x5354555657584142", "0x0000000000005152"],
"XMM4": ["0x0", "0x0"],
"XMM5": ["0x6162636465666768", "0x7172737475767778"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
Expand Down
3 changes: 0 additions & 3 deletions unittests/ASM/H0F3A/0_XX_0F.asm
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
"MM2": "0x0061626364656667",
"MM3": "0x0",
"MM4": "0x5152535455565758"
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
Expand Down
3 changes: 0 additions & 3 deletions unittests/ASM/JMP.asm
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
"RBX": "2",
"RCX": "3",
"RDX": "4"
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
Expand Down
3 changes: 0 additions & 3 deletions unittests/ASM/MOVHPD.asm
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
"RAX": "0xDEADBEEFBAD0DAD1",
"RCX": "0xDEADBEEFBAD0DAD1",
"XMM0": ["0", "0xDEADBEEFBAD0DAD1"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
Expand Down
3 changes: 0 additions & 3 deletions unittests/ASM/OpSize/15_BYTE.asm
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
%ifdef CONFIG
{
"RegData": {
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
Expand Down
3 changes: 0 additions & 3 deletions unittests/ASM/OpSize/66_10.asm
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
{
"RegData": {
"XMM0": ["0x4142434445464748", "0x5152535455565758"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
Expand Down
3 changes: 0 additions & 3 deletions unittests/ASM/OpSize/66_11.asm
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"RegData": {
"XMM0": ["0x4142434445464748", "0x5152535455565758"],
"XMM1": ["0x4142434445464748", "0x5152535455565758"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
Expand Down
3 changes: 0 additions & 3 deletions unittests/ASM/OpSize/66_12.asm
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
{
"RegData": {
"XMM0": ["0x6162636465666768", "0x5152535455565758"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
Expand Down
3 changes: 0 additions & 3 deletions unittests/ASM/OpSize/66_13.asm
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
"RAX": "0x4142434445464748",
"RBX": "0x0",
"XMM0": ["0x4142434445464748", "0x5152535455565758"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
Expand Down
3 changes: 0 additions & 3 deletions unittests/ASM/OpSize/66_14.asm
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
{
"RegData": {
"XMM0": ["0x4142434445464748", "0x6162636465666768"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
Expand Down
3 changes: 0 additions & 3 deletions unittests/ASM/OpSize/66_15.asm
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
{
"RegData": {
"XMM0": ["0x5152535455565758", "0x7172737475767778"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
Expand Down
3 changes: 0 additions & 3 deletions unittests/ASM/OpSize/66_28.asm
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"RegData": {
"XMM0": ["0x4142434445464748", "0x5152535455565758"],
"XMM1": ["0x4142434445464748", "0x5152535455565758"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
Expand Down
3 changes: 0 additions & 3 deletions unittests/ASM/OpSize/66_29.asm
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
"RBX": "0x5152535455565758",
"XMM0": ["0x4142434445464748", "0x5152535455565758"],
"XMM1": ["0x4142434445464748", "0x5152535455565758"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
Expand Down
3 changes: 0 additions & 3 deletions unittests/ASM/OpSize/66_2A.asm
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"RegData": {
"XMM0": ["0x3ff0000000000000", "0x0"],
"XMM1": ["0xc000000000000000", "0xbff0000000000000"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
Expand Down
3 changes: 0 additions & 3 deletions unittests/ASM/OpSize/66_2B.asm
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"RegData": {
"XMM0": ["0x4142434445464748", "0x5152535455565758"],
"XMM1": ["0x4142434445464748", "0x5152535455565758"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
Expand Down
3 changes: 0 additions & 3 deletions unittests/ASM/OpSize/66_2C.asm
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"RegData": {
"MM0": "0x0000000200000001",
"MM1": "0xFFFFFFFEFFFFFFFF"
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
Expand Down
3 changes: 0 additions & 3 deletions unittests/ASM/OpSize/66_2D.asm
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"RegData": {
"MM0": "0x0000000200000001",
"MM1": "0xFFFFFFFEFFFFFFFF"
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
Expand Down
3 changes: 0 additions & 3 deletions unittests/ASM/OpSize/66_2E.asm
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"RegData": {
"RAX": "0x4700",
"RBX": "0x0300"
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
Expand Down
3 changes: 0 additions & 3 deletions unittests/ASM/OpSize/66_2F.asm
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"RegData": {
"RAX": "0x4700",
"RBX": "0x0300"
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
Expand Down
3 changes: 0 additions & 3 deletions unittests/ASM/OpSize/66_50.asm
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
"RAX": "0x2",
"RDI": "0x0",
"XMM0": ["0x0", "0x8000000000000000"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
Expand Down
3 changes: 0 additions & 3 deletions unittests/ASM/OpSize/66_51.asm
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
"XMM5": ["0x4000000000000000", "0x4000000000000000"],
"XMM6": ["0x4008000000000000", "0x4008000000000000"],
"XMM7": ["0x4010000000000000", "0x4010000000000000"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
Expand Down
3 changes: 0 additions & 3 deletions unittests/ASM/OpSize/66_54.asm
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
"XMM0": ["0x1010101010101010", "0x0"],
"XMM1": ["0x1010101010101010", "0x0"],
"XMM2": ["0x1010101010101010", "0xFFFFFFFFFFFFFFFF"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
Expand Down
3 changes: 0 additions & 3 deletions unittests/ASM/OpSize/66_55.asm
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
"XMM0": ["0x0", "0xFFFFFFFFFFFFFFFF"],
"XMM1": ["0x0", "0xFFFFFFFFFFFFFFFF"],
"XMM2": ["0x1010101010101010", "0xFFFFFFFFFFFFFFFF"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
Expand Down
3 changes: 0 additions & 3 deletions unittests/ASM/OpSize/66_56.asm
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
"XMM0": ["0x1111111111111111", "0x2222222222222222"],
"XMM1": ["0x1111111111111111", "0x2222222222222222"],
"XMM2": ["0x0101010101010101", "0x0202020202020202"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
Expand Down
3 changes: 0 additions & 3 deletions unittests/ASM/OpSize/66_57.asm
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
"XMM0": ["0x2424242424242424", "0x2424242424242424"],
"XMM1": ["0x2424242424242424", "0x2424242424242424"],
"XMM2": ["0x1818181818181818", "0x1818181818181818"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
Expand Down
3 changes: 0 additions & 3 deletions unittests/ASM/OpSize/66_58.asm
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
"XMM0": ["0x4008000000000000", "0x4008000000000000"],
"XMM1": ["0x4008000000000000", "0x4008000000000000"],
"XMM2": ["0x4000000000000000", "0x4000000000000000"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
Expand Down
3 changes: 0 additions & 3 deletions unittests/ASM/OpSize/66_59.asm
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
"XMM0": ["0x4018000000000000", "0x4018000000000000"],
"XMM1": ["0x4018000000000000", "0x4018000000000000"],
"XMM2": ["0x4000000000000000", "0x4000000000000000"]
},
"MemoryRegions": {
"0x100000000": "4096"
}
}
%endif
Expand Down
Loading

0 comments on commit 7c6444c

Please sign in to comment.