]> granicus.if.org Git - yasm/commit
* x86bc.c (x86_bc_insn_resolve): Actually support the flag to allow
authorPeter Johnson <peter@tortall.net>
Sat, 24 Sep 2005 23:50:09 +0000 (23:50 -0000)
committerPeter Johnson <peter@tortall.net>
Sat, 24 Sep 2005 23:50:09 +0000 (23:50 -0000)
commit164f5994a5d9ea1b7fdf65f4cee0c608c9fdb6ed
tree282c1f2fe9867b1c7a9475856dc20d3a14bef439
parent15d55155682636d1932d6cc27fcc40ee5d7dc737
* x86bc.c (x86_bc_insn_resolve): Actually support the flag to allow
shortening to signed 8-bit immediate from a larger immediate size.  This
yields much smaller code for many arithmetic instructions.

Noticed by: Brian Gladman <brg@gladman.plus.com>

svn path=/trunk/yasm/; revision=1227
13 files changed:
modules/arch/x86/tests/addbyte.asm
modules/arch/x86/tests/addbyte.hex
modules/arch/x86/tests/genopcode.hex
modules/arch/x86/x86bc.c
modules/dbgfmts/stabs/tests/stabs-elf.hex
modules/objfmts/coff/tests/cofftest.hex
modules/objfmts/coff/tests/x86id.hex
modules/objfmts/elf/tests/amd64/elfso64.hex
modules/objfmts/elf/tests/elf-x86id.hex
modules/objfmts/elf/tests/elfso.hex
modules/objfmts/elf/tests/elftest.hex
modules/objfmts/win32/tests/win32test.hex
modules/objfmts/xdf/tests/xdflong.hex