This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: PR gas/5534: "XXX PTR" isn't checked properly in Intel syntax
- From: "H.J. Lu" <hjl at lucon dot org>
- To: Jan Beulich <jbeulich at novell dot com>
- Cc: binutils at sources dot redhat dot com, gcc at gcc dot gnu dot org
- Date: Fri, 4 Jan 2008 06:28:20 -0800
- Subject: Re: PATCH: PR gas/5534: "XXX PTR" isn't checked properly in Intel syntax
- References: <477DE9CA0200007800043BD5@public.id2-vpn.continvity.gns.novell.com>
On Fri, Jan 04, 2008 at 08:09:44AM +0000, Jan Beulich wrote:
> While I agree on the subject, I slightly disagree on the approach you took: The added flags shouldn't go on the instructions, but on their operands (otherwise you'll likely end up creating more special case code namely for movzx/movsx, but perhaps also elsewhere): Just like for registers, memory operands should properly specify what sizes are acceptable (basically, operand type and operand size should probably be decoupled). Jan
Another problem is suffix. I don't like using "suffix" for both
mnemonic suffix in AT&T/Intel modes and operand size in Intel mode.
I like your suggestion. We now have enough bits on operand to do it.
But it is a major work and it can't be done one instruction at a time.
H.J.