(move_pic_label_si,move_label_di): Rewrite length
authorDoug Evans <dje@gnu.org>
Mon, 11 Mar 1996 06:05:08 +0000 (06:05 +0000)
committerDoug Evans <dje@gnu.org>
Mon, 11 Mar 1996 06:05:08 +0000 (06:05 +0000)
attr calcs to be more conservative.

From-SVN: r11509

gcc/config/sparc/sparc.md

index fc5279b..bfe83bc 100644 (file)
     return \"\\n1:\;call 2f\;sethi %%hi(%l1-1b),%0\\n2:\\tor %0,%%lo(%l1-1b),%0\;add %0,%%o7,%0\";
 }"
   [(set_attr "type" "multi")
-   ; 1024 = 4096 bytes / 4 bytes/insn
+   ; 960 = 4096 bytes / 4 bytes/insn - 64 (for not always perfect length calcs)
    (set (attr "length") (if_then_else (ltu (minus (match_dup 1) (pc))
-                                          (const_int 1024))
+                                          (const_int 960))
                                      (const_int 2)
                                      (const_int 4)))])
 
     return \"\\n1:\;rd %%pc,%%o7\;sethi %%hi(%l1-1b),%0\;add %0,%%lo(%l1-1b),%0\;sra %0,0,%0\;add %0,%%o7,%0\";
 }"
   [(set_attr "type" "multi")
-   ; 1024 = 4096 bytes / 4 bytes/insn
+   ; 960 = 4096 bytes / 4 bytes/insn - 64 (for not always perfect length calcs)
    (set (attr "length") (if_then_else (ltu (minus (match_dup 1) (pc))
-                                          (const_int 1024))
+                                          (const_int 960))
                                      (const_int 2)
                                      (const_int 5)))])