This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] h8300.md: Tighten predicates.


Hi,

Attached is a patch to tighten predicates of negation patterns to
register_operand.

Although no breakage has been reported, it's definitely safer to have
correct predicates.

Tested on h8300 port.  Committed.

Kazu Hirata

2002-01-25  Kazu Hirata  <kazu@hxi.com>

	* config/h8300/h8300.md (negation patterns): Tighten
	predicates to register_operand.

Index: h8300.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/h8300/h8300.md,v
retrieving revision 1.58
diff -u -r1.58 h8300.md
--- h8300.md	2002/01/24 19:48:53	1.58
+++ h8300.md	2002/01/25 06:07:21
@@ -1286,7 +1286,7 @@
 
 (define_insn "negqi2"
   [(set (match_operand:QI 0 "register_operand" "=r")
-	(neg:QI (match_operand:QI 1 "general_operand" "0")))]
+	(neg:QI (match_operand:QI 1 "register_operand" "0")))]
   ""
   "neg	%X0"
   [(set_attr "length" "2")
@@ -1294,7 +1294,7 @@
 
 (define_expand "neghi2"
   [(set (match_operand:HI 0 "register_operand" "")
-	(neg:HI (match_operand:HI 1 "general_operand" "")))]
+	(neg:HI (match_operand:HI 1 "register_operand" "")))]
   ""
   "
 {
@@ -1316,7 +1316,7 @@
 
 (define_insn "neghi2_h8300h"
   [(set (match_operand:HI 0 "register_operand" "=r")
-	(neg:HI (match_operand:HI 1 "general_operand" "0")))]
+	(neg:HI (match_operand:HI 1 "register_operand" "0")))]
   "TARGET_H8300H || TARGET_H8300S"
   "neg	%T0"
   [(set_attr "length" "2")
@@ -1324,7 +1324,7 @@
 
 (define_expand "negsi2"
   [(set (match_operand:SI 0 "register_operand" "")
-	(neg:SI (match_operand:SI 1 "general_operand" "")))]
+	(neg:SI (match_operand:SI 1 "register_operand" "")))]
   ""
   "
 {
@@ -1346,7 +1346,7 @@
 
 (define_insn "negsi2_h8300h"
   [(set (match_operand:SI 0 "register_operand" "=r")
-	(neg:SI (match_operand:SI 1 "general_operand" "0")))]
+	(neg:SI (match_operand:SI 1 "register_operand" "0")))]
   "TARGET_H8300H || TARGET_H8300S"
   "neg	%S0"
   [(set_attr "length" "2")


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]