]> granicus.if.org Git - yasm/commitdiff
Call expr_expand_equ() on effective address from bytecode_parser_finalize().
authorPeter Johnson <peter@tortall.net>
Mon, 15 Oct 2001 07:07:55 +0000 (07:07 -0000)
committerPeter Johnson <peter@tortall.net>
Mon, 15 Oct 2001 07:07:55 +0000 (07:07 -0000)
svn path=/trunk/yasm/; revision=285

libyasm/bytecode.c
src/bytecode.c

index 3bac66a8d45375780e2869f8eab148497a6c10f4..59a36be533649a2410fff5058b4cf248774ca7ec 100644 (file)
@@ -675,7 +675,8 @@ bytecode_parser_finalize_insn(bytecode *bc)
     if (ea) {
        if ((ea->disp) && ((!ea->valid_sib && ea->need_sib) ||
                           (!ea->valid_modrm && ea->need_modrm))) {
-           /* First simplify expression to minimize check cost */
+           /* First expand equ's and simplify expression */
+           expr_expand_equ(ea->disp);
            expr_simplify(ea->disp);
 
            /* Check validity of effective address and calc R/M bits of
index 3bac66a8d45375780e2869f8eab148497a6c10f4..59a36be533649a2410fff5058b4cf248774ca7ec 100644 (file)
@@ -675,7 +675,8 @@ bytecode_parser_finalize_insn(bytecode *bc)
     if (ea) {
        if ((ea->disp) && ((!ea->valid_sib && ea->need_sib) ||
                           (!ea->valid_modrm && ea->need_modrm))) {
-           /* First simplify expression to minimize check cost */
+           /* First expand equ's and simplify expression */
+           expr_expand_equ(ea->disp);
            expr_simplify(ea->disp);
 
            /* Check validity of effective address and calc R/M bits of