Created attachment 119205 [details] Patch fixing the issue like it was fixed in movs SUMMARY The instruction CMPS{B,W,D,Q} can be used with or without prefix, the x86->IR valgrind backend supports the instruction without prefix but the amd64 one does not. Attached to the issue is a patch fixing it. STEPS TO REPRODUCE 1. Write any small program that uses cmps{b,w,d,q} on amd64. OBSERVED RESULT VEX will say that the instructions is not handled. EXPECTED RESULT Correct handling of the instruction like in the x86->IR backend
Created attachment 119206 [details] Example strcmp implementation using cmpsb without a rep prefix Added example code.