[decompiler] Working toward bsp (#717)

* clean up

* before int to float stuff

* before trying to eliminate the separate read and write maps

* partial fix for register issues

* add missing include
This commit is contained in:
water111
2021-07-25 15:30:37 -04:00
committed by GitHub
parent 38c97481e7
commit 2b6684aa5c
76 changed files with 5695 additions and 514 deletions
+17 -1
View File
@@ -41,11 +41,27 @@ TEST(DecompilerInstructionParser, ProgramLabels) {
EXPECT_EQ(result.print(), program);
}
TEST(DecompilerInstructionParser, VU) {
TEST(DecompilerInstructionParser, VuMask) {
InstructionParser parser;
std::string program =
" vmove.xy vf1, vf2\n"
" vsub.yw vf1, vf2, vf25\n";
auto result = parser.parse_program(program);
EXPECT_EQ(result.print(), program);
}
TEST(DecompilerInstructionParser, VuMoves) {
InstructionParser parser;
std::string program =
" qmtc2.i vf2, a2\n"
" qmfc2.i v0, vf1\n";
auto result = parser.parse_program(program);
EXPECT_EQ(result.print(), program);
}
TEST(DecompilerInstructionParser, VuBroadcast) {
InstructionParser parser;
std::string program = " vmuly.xyw vf1, vf1, vf2\n";
auto result = parser.parse_program(program);
EXPECT_EQ(result.print(), program);
}