This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: i386 length attribute cleanups
- To: Jan Hubicka <jh at suse dot cz>
- Subject: Re: i386 length attribute cleanups
- From: Richard Henderson <rth at cygnus dot com>
- Date: Fri, 23 Jun 2000 14:00:05 -0700
- Cc: gcc-patches at gcc dot gnu dot org
- References: <20000612201201.C28482@atrey.karlin.mff.cuni.cz>
On Mon, Jun 12, 2000 at 08:12:01PM +0200, Jan Hubicka wrote:
> * genattrtab.c (write_attr_value): Do not abort for CONST_INT operands.
> * i386.c (ix86_attr_length_default): Kill.
> (ix86_attr_length_immediate_default, ix86_attr_length_address_default):
> New.
> * i386-protos.h (ix86_attr_length_default): Kill
> (ix86_attr_length_immediate_default, ix86_attr_length_address_default):
> Add prototype
> * i386.md (attribute type): Add "test".
> (attribute length_prefix): Kill.
> (attribute length_opcode): Kill.
> (attribute i387, mode, length_immediate, length_address, prefix_data16,
> prefix_rep, prefix_0f, modrm): New.
> (attribute length): Compute using the new attributes.
> (attribute pent_prefix): New.
> (attribute pent_pair): Compute using pent_prefix.
> (all insn patterns): Set mode,modrm and immediate_length attributes where
> needed.
> (cmpsi patterns): Compute sizes propertly for test instruction.
> (movsi, movhi patterns): Compute sizes propertly for eax shortcuts.
> (movstricthi_xor, movstrictqi_xor): New patterns.
> (andsi/andhi): Use splitters to generate xor instructions.
> (xorqi_ext_1): New pattern.
> (movstricthi->movstricthi_xor peep2): New.
Ok, except for
+ case CONST_INT:
+ printf ("%i", INTVAL (value));
+ break;
which should use HOST_WIDE_PRINT_DEC.
r~