]> granicus.if.org Git - yasm/commit
Fix indexreg handling in x86_expr_checkea_getregusage() to correctly handle
authorPeter Johnson <peter@tortall.net>
Sat, 27 Mar 2004 03:14:52 +0000 (03:14 -0000)
committerPeter Johnson <peter@tortall.net>
Sat, 27 Mar 2004 03:14:52 +0000 (03:14 -0000)
commit843cbf7485a6484b3948c37a0f568acdffa2ddd9
tree9b8a8dea0828dfa0de5568517eb8bf2eb76531e5
parent920c0082364096310c1599736330e82e32dc3f72
Fix indexreg handling in x86_expr_checkea_getregusage() to correctly handle
a non-multiplier used after a multiplier (e.g. edi*8+eax).  Previously,
this resulted in the eax overriding the edi as the indexreg, causing the
effective address not to be recognized.

Update the effaddr testcase to test this case and a few other similar ones.

Bugzilla bug: 31
Reported by: vclaudepierre@tiscali.fr

svn path=/trunk/yasm/; revision=1106
modules/arch/x86/tests/effaddr.asm
modules/arch/x86/tests/effaddr.hex
modules/arch/x86/x86expr.c