This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: i386 length attribute cleanups


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~

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]