diff options
| -rw-r--r-- | gcc/ChangeLog | 4 | ||||
| -rw-r--r-- | gcc/config/h8300/h8300.md | 12 |
2 files changed, 16 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5717dea4ee3..47f873553bd 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 08bdb8e4c69..c846ac67bbd 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" "") |

