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: Add comments for define_peephole2.


Hi,

Attached is a patch to add comments for define_peephole2.  Committed
as obvious.

Kazu Hirata

2002-12-01  Kazu Hirata  <kazu@cs.umass.edu>

	* config/h8300/h8300.md: Add comments for define_peephole2.

Index: h8300.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/h8300/h8300.md,v
retrieving revision 1.113
diff -u -r1.113 h8300.md
--- h8300.md	29 Nov 2002 16:24:58 -0000	1.113
+++ h8300.md	1 Dec 2002 17:59:21 -0000
@@ -2353,6 +2353,8 @@
 ;; PEEPHOLE PATTERNS
 ;; -----------------------------------------------------------------
 
+;; Convert (A >> B) & C to (A & 255) >> B if C == 255 >> B.
+
 (define_peephole2
   [(parallel
      [(set (match_operand:HI 0 "register_operand" "")
@@ -2373,6 +2375,8 @@
       (clobber (match_dup 2))])]
   "")
 
+;; Convert (A << B) & C to (A & 255) << B if C == 255 << B.
+
 (define_peephole2
   [(parallel
      [(set (match_operand:HI 0 "register_operand" "")
@@ -2393,6 +2397,8 @@
       (clobber (match_dup 2))])]
   "")
 
+;; Convert (A >> B) & C to (A & 255) >> B if C == 255 >> B.
+
 (define_peephole2
   [(parallel
      [(set (match_operand:SI 0 "register_operand" "")
@@ -2413,6 +2419,8 @@
       (clobber (match_dup 2))])]
   "")
 
+;; Convert (A << B) & C to (A & 255) << B if C == 255 << B.
+
 (define_peephole2
   [(parallel
      [(set (match_operand:SI 0 "register_operand" "")
@@ -2433,6 +2441,8 @@
       (clobber (match_dup 2))])]
   "")
 
+;; Convert (A >> B) & C to (A & 65535) >> B if C == 65535 >> B.
+
 (define_peephole2
   [(parallel
      [(set (match_operand:SI 0 "register_operand" "")
@@ -2452,6 +2462,8 @@
 			(match_dup 1)))
       (clobber (match_dup 2))])]
   "")
+
+;; Convert (A << B) & C to (A & 65535) << B if C == 65535 << B.
 
 (define_peephole2
   [(parallel


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