EXTRA_DIST += modules/arch/x86/tests/nomem64.hex
EXTRA_DIST += modules/arch/x86/tests/o64.asm
EXTRA_DIST += modules/arch/x86/tests/o64.hex
+EXTRA_DIST += modules/arch/x86/tests/o64loop.asm
+EXTRA_DIST += modules/arch/x86/tests/o64loop.errwarn
+EXTRA_DIST += modules/arch/x86/tests/o64loop.hex
EXTRA_DIST += modules/arch/x86/tests/opersize.asm
EXTRA_DIST += modules/arch/x86/tests/opersize.hex
EXTRA_DIST += modules/arch/x86/tests/opsize-err.asm
common->opersize = (unsigned char)prefixes[i] & 0xff;
if (common->mode_bits == 64 && common->opersize == 64 &&
def_opersize_64 != 64) {
- if (*rex == 0xff)
+ if (!rex)
+ yasm_warn_set(YASM_WARN_GENERAL,
+ N_("ignoring REX prefix on jump"));
+ else if (*rex == 0xff)
yasm_warn_set(YASM_WARN_GENERAL,
N_("REX prefix not allowed on this instruction, ignoring"));
else