Fix buggy operand decoding of movs/cmps and add unit test.