instrs: Disambiguate instr type by mnemonic

This commit is contained in:
Alexis Engelke
2022-02-20 15:37:23 +01:00
parent e78a89b610
commit 87fe6314b8
3 changed files with 60 additions and 48 deletions

View File

@@ -69,18 +69,18 @@ main(int argc, char** argv)
TEST("\x54", FE_PUSHr, FE_SP);
TEST("\x41\x57", FE_PUSHr, FE_R15);
TEST("\x41\x50", FE_PUSHr, FE_R8);
TEST("", FE_PUSHr, FE_ES);
TEST("", FE_PUSH16r, FE_ES);
TEST("", FE_PUSHr, FE_CS);
TEST("", FE_PUSH16r, FE_CS);
TEST("", FE_PUSHr, FE_SS);
TEST("", FE_PUSH16r, FE_SS);
TEST("", FE_PUSHr, FE_DS);
TEST("", FE_PUSH16r, FE_DS);
TEST("\x0f\xa0", FE_PUSHr, FE_FS);
TEST("\x66\x0f\xa0", FE_PUSH16r, FE_FS);
TEST("\x0f\xa8", FE_PUSHr, FE_GS);
TEST("\x66\x0f\xa8", FE_PUSH16r, FE_GS);
TEST("", FE_PUSH_SEGr, FE_ES);
TEST("", FE_PUSH_SEG16r, FE_ES);
TEST("", FE_PUSH_SEGr, FE_CS);
TEST("", FE_PUSH_SEG16r, FE_CS);
TEST("", FE_PUSH_SEGr, FE_SS);
TEST("", FE_PUSH_SEG16r, FE_SS);
TEST("", FE_PUSH_SEGr, FE_DS);
TEST("", FE_PUSH_SEG16r, FE_DS);
TEST("\x0f\xa0", FE_PUSH_SEGr, FE_FS);
TEST("\x66\x0f\xa0", FE_PUSH_SEG16r, FE_FS);
TEST("\x0f\xa8", FE_PUSH_SEGr, FE_GS);
TEST("\x66\x0f\xa8", FE_PUSH_SEG16r, FE_GS);
TEST("\xff\x30", FE_PUSHm, FE_MEM(FE_AX, 0, 0, 0));
TEST("\xff\x31", FE_PUSHm, FE_MEM(FE_CX, 0, 0, 0));
TEST("\x9c", FE_PUSHF);