[PATCH] h8300.md: Remove obsolete peephole definitions

Ralf Gütlein ralf.guetlein@aranea.de
Mon Aug 14 08:25:00 GMT 2000


Peephole definitions in h8300.md can be removed.
For an explanation see
http://gcc.gnu.org/ml/gcc/2000-08/msg00284.html


Patch follows below.

Regards,
Ralf
           .....
           ô ô )
-----oOOo--(_)---oOOo------

Ralf Guetlein
Biotest Medizintechnik GmbH
Industriestrasse 19
D-63755 Alzenau
Germany
---------------------------
Tel. +49 6023 9487-42
Fax. +49 6023 9487-33
ralf.guetlein@biotest-mt.de
---------------------------



*** h8300.md.old Mon Aug 14 17:04:38 2000
--- h8300.md Mon Aug 14 17:06:46 2000
***************
*** 2222,2271 ****
     (set_attr "adjust_length" "no")])


-
- ;; ----------------------------------------------
- ;; Peepholes go at the end.
- ;; ----------------------------------------------
-
- ;; Notice a move which could be post incremented.
-
- (define_peephole
-   [(set (match_operand:QI 0 "register_operand" "")
-  (mem:QI (match_operand:HI 1 "register_operand" "")))
-    (set (match_dup 1) (plus:HI (match_dup 1) (const_int 1)))]
-   "REGNO (operands[1]) != REGNO (operands[0])"
-   "mov.b @%T1+,%X0"
-   [(set_attr "length" "2")
-    (set_attr "cc" "set_znv")])
-
- (define_peephole
-   [(set (match_operand:HI 0 "register_operand" "")
-  (mem:HI (match_operand:HI 1 "register_operand" "")))
-    (set (match_dup 1) (plus:HI (match_dup 1) (const_int 2)))]
-   "REGNO (operands[1]) != REGNO (operands[0])"
-   "mov.w @%T1+,%T0"
-   [(set_attr "length" "2")
-    (set_attr "cc" "set_znv")])
-
- ;; Notice a move which could be predecremented.
-
- (define_peephole
-   [(set (match_operand:HI 1 "register_operand" "")
-  (plus:HI (match_dup 1) (const_int -1)))
-    (set (mem:QI (match_dup 1))
-   (match_operand:QI 0 "register_operand" ""))]
-   "REGNO (operands[1]) != REGNO (operands[0])"
-   "mov.b %X0,@-%T1"
-   [(set_attr "length" "2")
-    (set_attr "cc" "set_znv")])
-
- (define_peephole
-   [(set (match_operand:HI 1 "register_operand" "")
-  (plus:HI (match_dup 1) (const_int -2)))
-    (set (mem:HI (match_dup 1))
-   (match_operand:HI 0 "register_operand" ""))]
-   "REGNO (operands[1]) != REGNO (operands[0])"
-   "mov.w %T0,@-%T1"
-   [(set_attr "length" "2")
-    (set_attr "cc" "set_znv")])
-
--- 2222,2224 ----




More information about the Gcc-patches mailing list