* config/h8300/h8300.md: Add comments for define_peephole2.
authorKazu Hirata <kazu@cs.umass.edu>
Sun, 1 Dec 2002 18:04:06 +0000 (18:04 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Sun, 1 Dec 2002 18:04:06 +0000 (18:04 +0000)
From-SVN: r59690

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

index 5717dea4ee3f076ff37f97a76f8c695156d90948..47f873553bd46e26f22b8f22fa1f32665e513e01 100644 (file)
@@ -1,3 +1,7 @@
+2002-12-01  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * config/h8300/h8300.md: Add comments for define_peephole2.
+
 2002-12-01  Mark Mitchell  <mark@codesourcery.com>
 
        * builtin-types.def (BT_SIZE): Use size_type_node.
index 08bdb8e4c69d4fda4fc8090e1c6744aa7d4adce2..c846ac67bbd21bf9b92770befaf5138965dc3d2e 100644 (file)
 ;; PEEPHOLE PATTERNS
 ;; -----------------------------------------------------------------
 
+;; Convert (A >> B) & C to (A & 255) >> B if C == 255 >> B.
+
 (define_peephole2
   [(parallel
      [(set (match_operand:HI 0 "register_operand" "")
       (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" "")
       (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" "")
       (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" "")
       (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" "")
       (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" "")