summaryrefslogtreecommitdiff
path: root/gcc/config/h8300/h8300.md
diff options
context:
space:
mode:
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2004-02-29 18:44:18 +0000
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2004-02-29 18:44:18 +0000
commit9bf7efa355a44c445a34682f13dfcfb2c3772e13 (patch)
tree0c0faad691be9450a9413f6155969ecc306f54df /gcc/config/h8300/h8300.md
parentf889e5e2a990da0679ac48fe1fb37217c39ead6b (diff)
downloadgcc-9bf7efa355a44c445a34682f13dfcfb2c3772e13.tar.gz
* config/h8300/h8300.md: Tweak comments about peephole2's.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78657 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/h8300/h8300.md')
-rw-r--r--gcc/config/h8300/h8300.md30
1 files changed, 19 insertions, 11 deletions
diff --git a/gcc/config/h8300/h8300.md b/gcc/config/h8300/h8300.md
index 25462cfc1bd..ca71dd69f94 100644
--- a/gcc/config/h8300/h8300.md
+++ b/gcc/config/h8300/h8300.md
@@ -4176,12 +4176,12 @@
;; Transform
;;
;; cmp.w #1,r0
-;; bhi .L1
+;; bgt .L1
;;
;; into
;;
;; shar.w r0
-;; bne .L1
+;; bgt .L1
(define_peephole2
[(set (cc0)
@@ -4223,12 +4223,12 @@
;; Transform
;;
;; cmp.w #255,r0
-;; bhi .L1
+;; bgt .L1
;;
;; into
;;
;; mov.b r0h,r0h
-;; bne .L1
+;; bgt .L1
(define_peephole2
[(set (cc0)
@@ -4448,13 +4448,13 @@
;; Transform
;;
;; cmp.l #1,er0
-;; bhi .L1
+;; bgt .L1
;;
;; into
;;
;; mov.l er0,er1
;; shar.l er1
-;; bne .L1
+;; bgt .L1
;; We avoid this transformation if we see more than one copy of the
;; same compare insn immediately before this one.
@@ -4503,12 +4503,12 @@
;; Transform
;;
;; cmp.l #1,er0
-;; bhi .L1
+;; bgt .L1
;;
;; into
;;
;; shar.l er0
-;; bne .L1
+;; bgt .L1
(define_peephole2
[(set (cc0)
@@ -4550,13 +4550,13 @@
;; Transform
;;
;; cmp.l #15,er0
-;; bhi .L1
+;; bgt .L1
;;
;; into
;;
;; and #240,r0l
;; mov.l er0,er0
-;; bne .L1
+;; bgt .L1
(define_peephole2
[(set (cc0)
@@ -4599,7 +4599,15 @@
}
operands[5] = GEN_INT (~INTVAL (operands[1]));")
-;; Transform A <= 65535 to (A & 0xffff0000) == 0.
+;; Transform
+;;
+;; cmp.l #65535,er0
+;; bgt .L1
+;;
+;; into
+;;
+;; mov.l e0,e0
+;; bgt .L1
(define_peephole2
[(set (cc0)