[patch] h8300.md: Fix warnings.

Kazu Hirata kazu@cs.umass.edu
Sun Nov 16 14:03:00 GMT 2003


Hi,

Attached is a patch to fix warnings.

Tested on h8300 port.  Committed.

Kazu Hirata

2003-11-16  Kazu Hirata  <kazu@cs.umass.edu>

	* config/h8300/h8300.md: Fix warnings by replacing -2147483648
	with -2147483647 - 1.

Index: h8300.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/h8300/h8300.md,v
retrieving revision 1.238
diff -u -r1.238 h8300.md
--- h8300.md	9 Oct 2003 23:50:46 -0000	1.238
+++ h8300.md	15 Nov 2003 22:29:06 -0000
@@ -4262,7 +4262,7 @@
 		      (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)
@@ -4277,7 +4277,7 @@
 	(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
 ;;



More information about the Gcc-patches mailing list