aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2002-12-01 18:04:06 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2002-12-01 18:04:06 +0000
commit96cc06af6f5558fb7f88b1d62b72b31fd5005f05 (patch)
tree4d61c9aa1a0984bf654d0f2a7653fff226aa2ad9
parentc9f8536c5dc8c115f26aaeb87585dbce0eeb4a10 (diff)
downloadgcc-96cc06af6f5558fb7f88b1d62b72b31fd5005f05.zip
gcc-96cc06af6f5558fb7f88b1d62b72b31fd5005f05.tar.gz
gcc-96cc06af6f5558fb7f88b1d62b72b31fd5005f05.tar.bz2
* config/h8300/h8300.md: Add comments for define_peephole2.
From-SVN: r59690
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/h8300/h8300.md12
2 files changed, 16 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5717dea..47f8735 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/config/h8300/h8300.md b/gcc/config/h8300/h8300.md
index 08bdb8e..c846ac67 100644
--- a/gcc/config/h8300/h8300.md
+++ b/gcc/config/h8300/h8300.md
@@ -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" "")
@@ -2453,6 +2463,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" "")