OSDN Git Service

2004-05-03 Eric Christopher <echristo@redhat.com>
authorechristo <echristo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 3 May 2004 22:28:55 +0000 (22:28 +0000)
committerechristo <echristo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 3 May 2004 22:28:55 +0000 (22:28 +0000)
* config/mips/mips.md: Fix branch length attribute definition.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81457 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/mips/mips.md

index 155888f..ef26693 100644 (file)
@@ -1,3 +1,7 @@
+2004-05-03  Eric Christopher  <echristo@redhat.com>
+
+       * config/mips/mips.md: Fix branch length attribute definition.
+
 2004-05-03  Aldy Hernandez  <aldyh@redhat.com>
 
        * config.gcc: Remove --enable-altivec support.
        * config/alpha/alpha.c (alpha_rtx_costs): Fix shiftadd costs.
 
 2004-05-01  Ulrich Weigand  <uweigand@de.ibm.com>
-       
+
        PR middle-end/15054
-       * expr.c (expand_expr_real): Do not call preserve_temp_slots 
+       * expr.c (expand_expr_real): Do not call preserve_temp_slots
        on a TARGET_EXPR temp.
        * function.c (assign_stack_temp_for_type): Set 'keep' flag for
        TARGET_EXPR temp slots.
index 6b9316d..0469d4a 100644 (file)
          ;; Note that this value does not account for the delay slot
          ;; instruction, whose length is added separately.  If the RTL
          ;; pattern has no explicit delay slot, mips_adjust_insn_length
-         ;; will add the length of the implicit nop.
+         ;; will add the length of the implicit nop.  The values for
+         ;; forward and backward branches will be different as well.
          (eq_attr "type" "branch")
-          (cond [(lt (abs (minus (match_dup 1) (plus (pc) (const_int 4))))
-                     (const_int 131072))
-                 (const_int 4)
+         (cond [(and (le (minus (match_dup 1) (pc)) (const_int 131064))
+                      (le (minus (pc) (match_dup 1)) (const_int 131068)))
+                  (const_int 4)
                 (ne (symbol_ref "flag_pic") (const_int 0))
                 (const_int 24)
                 ] (const_int 12))
@@ -6143,7 +6144,7 @@ sra\t%M0,%M1,%2\n\
 ;; to make it simple enough for combine to understand.
 ;;
 ;; The length here is the worst case: the length of the split version
-;; will be more accurate. 
+;; will be more accurate.
 (define_insn_and_split ""
   [(set (match_operand:SI 0 "register_operand" "=d")
        (lshiftrt:SI (match_operand:SI 1 "memory_operand" "m")