This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Preventing x86 instruction length optimizations
- From: Florian Weimer <fw at deneb dot enyo dot de>
- To: binutils at sources dot redhat dot com
- Date: Tue, 06 Dec 2005 17:04:09 +0100
- Subject: Preventing x86 instruction length optimizations
A recent GAS update to Debian (currently at 2.16.1cvs20050902-1)
changed the length of this instruction:
adc 0(%ebx,%ecx,4),%edx
Previously, it was encoded as a four-octet sequence, now it's
equivalent to:
adc (%ebx,%ecx,4),%edx
-- which only needs three octets.
Is this the intended behavior? Is there any easy way to force the
long instruction encoding, short of using .byte?