rs6000.c: Formatting fix.
authorAlan Modra <amodra@bigpond.net.au>
Mon, 8 Mar 2004 04:24:27 +0000 (04:24 +0000)
committerAlan Modra <amodra@gcc.gnu.org>
Mon, 8 Mar 2004 04:24:27 +0000 (14:54 +1030)
* config/rs6000/rs6000.c: Formatting fix.
(legitimate_offset_address_p): Correct offset range check.

From-SVN: r79098

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index 5fc25cf6f8d9c39d81a0a8601c11a6ee61bf27f1..0ca4fbf014baec94686682d5b03e4f36cd834376 100644 (file)
@@ -1,5 +1,8 @@
 2004-03-08  Alan Modra  <amodra@bigpond.net.au>
 
+       * config/rs6000/rs6000.c: Formatting fix.
+       (legitimate_offset_address_p): Correct offset range check.
+
        * config/rs6000/rs6000.c (rs6000_override_options): Don't override
        -msoft-float by -mcpu.  Consolidate similar code for MASK_MULTIPLE
        and MASK_STRING.
index f6dbf966aa83ac87b04b5380cb5bcf346d32a0cd..3e4aeb81d4568dfd7f8dc1e8a49c7c1c85478728 100644 (file)
@@ -410,7 +410,7 @@ static rtx rs6000_spe_function_arg (CUMULATIVE_ARGS *,
                                    enum machine_mode, tree);
 static rtx rs6000_mixed_function_arg (CUMULATIVE_ARGS *,
                                      enum machine_mode, tree, int);
-static void rs6000_move_block_from_reg(int regno, rtx x, int nregs);
+static void rs6000_move_block_from_reg (int regno, rtx x, int nregs);
 static void setup_incoming_varargs (CUMULATIVE_ARGS *,
                                    enum machine_mode, tree,
                                    int *, int);
@@ -2568,7 +2568,8 @@ legitimate_offset_address_p (enum machine_mode mode, rtx x, int strict)
       break;
     }
 
-  return (offset + extra >= offset) && (offset + extra + 0x8000 < 0x10000);
+  offset += 0x8000;
+  return (offset < 0x10000) && (offset + extra < 0x10000);
 }
 
 static bool