tests: Add more corner cases

This commit is contained in:
Alexis Engelke
2021-09-22 12:15:59 +02:00
parent 1bd5f7c572
commit 16c5c64932
2 changed files with 26 additions and 0 deletions

View File

@@ -213,6 +213,8 @@ main(int argc, char** argv)
TEST("", FE_MOV64ar, 0xfedcba9876543210, FE_CX);
TEST("", FE_MOV64ar|FE_ADDR32, 0xfedcba98, FE_CX);
TEST("\xc7\xf8\x02\x00\x00\x00", FE_XBEGIN, (intptr_t) buf + 8);
// Test FPU instructions
TEST("\xd8\x00", FE_FADDm32, FE_MEM(FE_AX, 0, 0, 0));
TEST("\xdc\x00", FE_FADDm64, FE_MEM(FE_AX, 0, 0, 0));