Created attachment 173576 [details] Patch SUMMARY Attached patch adds support for repnz prefix, which is another encoding for rep cmps, and the case where there is no rep prefix for a cmps instruction. Closes 253436, 340469, 406132 STEPS TO REPRODUCE Build and run https://github.com/qemu/qemu/blob/master/tests/tcg/i386/test-i386.c OBSERVED RESULT Crash when these instructions are encountered. EXPECTED RESULT cmps should work with the repnz prefix, and without a rep prefix. SOFTWARE/OS VERSIONS Valgrind: VALGRIND_3_23_0-108-g5d404b97d ADDITIONAL INFORMATION Discovered via QEMU differential tests. A version of these tests, with these particular cases commented out, are in Valgrind at /VEX/test/test-amd64.c, but the test in Valgrind repo does not compile.
Unfortunately I cannot edit the above comment, so please ignore my obvious error in description: > which is another encoding for rep cmps,