Commit 5436c29d authored by Laurent Vivier's avatar Laurent Vivier
Browse files

target-m68k: Fix cmpa operand size



"The size of the operation can be specified as word or long.
Word length source operands are sign-extended to 32 bits for
comparison."

So comparison is always done using OS_LONG.

Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
Reviewed-by: default avatarRichard Henderson <rth@twiddle.net>
parent c090c97d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2170,7 +2170,7 @@ DISAS_INSN(cmpa)
    }
    SRC_EA(env, src, opsize, 1, NULL);
    reg = AREG(insn, 9);
    gen_update_cc_cmp(s, reg, src, opsize);
    gen_update_cc_cmp(s, reg, src, OS_LONG);
}

DISAS_INSN(eor)