SPARC: wrong length attribute on some insn

David S. Miller davem@redhat.com
Tue Apr 30 16:23:00 GMT 2002


   From: "Unruh, Erwin" <Erwin.Unruh@fujitsu-siemens.com>
   Date: Tue, 30 Apr 2002 12:18:58 +0200
   
   I found a bug in the machine desription for SPARC. It concernes the length
   attribute of some instructions:
   
   movsf_insn_novis, movsf_insn_vis, movsf_no_f_insn have a split in one of the
   cases. This split generates 2 insn but the length is only 1.
   
   negtf2_notv9, abstf2_notv9 have a split which results in 3 instructions. The
   length given is only 2.
   
   Seen in snapshot 20020408 of 3.1

When an instruction is split, it's length does not really matter.
Only the real instructions is splits into matter.

In fact, using default attribute settings for the length in these
split cases is preferrable because the compiler will be smaller and
faster than if explicit length attribute settings were used.



More information about the Gcc-bugs mailing list