From 86206d60a80187d533b5fba85e0800a484c2a5ea Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Thu, 11 Oct 2007 07:29:41 +0000 Subject: [PATCH] x86_find_match(): Fix error reporting for operand 3 mismatches. svn path=/trunk/yasm/; revision=2003 --- modules/arch/x86/x86id.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/arch/x86/x86id.c b/modules/arch/x86/x86id.c index f16b3a10..13dcff60 100644 --- a/modules/arch/x86/x86id.c +++ b/modules/arch/x86/x86id.c @@ -839,13 +839,13 @@ x86_find_match(x86_id_insn *id_insn, yasm_insn_operand **ops, if (op->type == YASM_INSN__OPERAND_REG && op->size == 0) { /* Register size must exactly match */ if ((bypass == 4 && i == 0) || (bypass == 5 && i == 1) - || (bypass == 6 && i == 3)) + || (bypass == 6 && i == 2)) ; else if (yasm_x86__get_reg_size(op->data.reg) != size) mismatch = 1; } else { if ((bypass == 1 && i == 0) || (bypass == 2 && i == 1) - || (bypass == 3 && i == 3)) + || (bypass == 3 && i == 2)) ; else if (info_ops[i].relaxed) { /* Relaxed checking */ -- 2.40.0