h8300.md: Fix warnings by replacing -2147483648 with -2147483647 - 1.
authorKazu Hirata <kazu@cs.umass.edu>
Sun, 16 Nov 2003 13:55:19 +0000 (13:55 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Sun, 16 Nov 2003 13:55:19 +0000 (13:55 +0000)
* config/h8300/h8300.md: Fix warnings by replacing -2147483648
with -2147483647 - 1.

From-SVN: r73647

gcc/ChangeLog
gcc/config/h8300/h8300.md

index 90ec0705983691f4e6a23d15d149e98471c8891e..2b9d116441ad588e7ae4fdf1e230b8b68c5e1e7a 100644 (file)
@@ -1,3 +1,8 @@
+2003-11-16  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * config/h8300/h8300.md: Fix warnings by replacing -2147483648
+       with -2147483647 - 1.
+
 2003-11-16  Gerald Pfeifer  <gerald@pfeifer.com>
 
        Fix links in online manuals.
index 0daa45c2f1159867bca30fb3d35f862507b8dc67..478c917590246a1740dacd3c6c06a18452d1f666 100644 (file)
                      (pc)))]
   "(TARGET_H8300H || TARGET_H8300S)
    && peep2_reg_dead_p (1, operands[0])
-   && (INTVAL (operands[1]) == -2147483648
+   && (INTVAL (operands[1]) == -2147483647 - 1
        || (TARGET_H8300S && INTVAL (operands[1]) == 1073741824))"
   [(set (match_dup 0)
        (rotate:SI (match_dup 0)
        (if_then_else (match_op_dup 3 [(cc0) (const_int 0)])
                      (label_ref (match_dup 2))
                      (pc)))]
-  "operands[4] = GEN_INT (INTVAL (operands[1]) == -2147483648 ? 1 : 2);")
+  "operands[4] = GEN_INT (INTVAL (operands[1]) == -2147483647 - 1 ? 1 : 2);")
 
 ;; Transform
 ;;