This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] h8300.md: Tweak comments.


Hi,

Attached is a patch to tweak comments.

Currently, both old or new versions of comments in this patch are
correct, but the new version will soon be the only corect one because
I'm planning to split several peepholes into two pieces to make the
MODE_CC migration patch readable.

Committed as obvious.

Kazu Hirata

2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>

	* config/h8300/h8300.md: Tweak comments about peephole2's.

Index: h8300.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/h8300/h8300.md,v
retrieving revision 1.275
diff -u -r1.275 h8300.md
--- h8300.md	18 Feb 2004 22:12:59 -0000	1.275
+++ h8300.md	29 Feb 2004 18:38:14 -0000
@@ -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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]