From 96cc06af6f5558fb7f88b1d62b72b31fd5005f05 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 1 Dec 2002 18:04:06 +0000 Subject: [PATCH] * config/h8300/h8300.md: Add comments for define_peephole2. From-SVN: r59690 --- gcc/ChangeLog | 4 ++++ gcc/config/h8300/h8300.md | 12 ++++++++++++ 2 files changed, 16 insertions(+) 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 + + * config/h8300/h8300.md: Add comments for define_peephole2. + 2002-12-01 Mark Mitchell * 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" "")