format: Emit REP/REPNZ only for string instruction

This commit is contained in:
Alexis Engelke
2021-01-23 14:29:29 +01:00
parent fe68dbb743
commit 7919b8115a
2 changed files with 12 additions and 7 deletions

View File

@@ -100,6 +100,8 @@ main(int argc, char** argv)
TEST64("\x66\x48\x0F\x01\xE2", "smsw rdx");
TEST32("\x66\x0f\x20\x00", "mov eax, cr0"); // mod=0, 66h
TEST64("\x66\x0f\x20\x00", "mov rax, cr0"); // mod=0, 66h
TEST32("\xf3\x0f\x20\x00", "mov eax, cr0"); // REP
TEST64("\xf3\x0f\x20\x00", "mov rax, cr0"); // REP
TEST("\x0f\x20\xc8", "UD"); // cr1
TEST32("\x0f\x20\xd0", "mov eax, cr2"); // cr2
TEST64("\x0f\x20\xd0", "mov rax, cr2"); // cr2