h8300.md: Remove an unnecessary zero_extend expander that is used when not optimizing.
authorKazu Hirata <kazu@hxi.com>
Tue, 17 Oct 2000 20:17:35 +0000 (20:17 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Tue, 17 Oct 2000 20:17:35 +0000 (20:17 +0000)
2000-10-17  Kazu Hirata  <kazu@hxi.com>

* config/h8300/h8300.md: Remove an unnecessary zero_extend
expander that is used when not optimizing.  Output a tab after
each assembly insns.

From-SVN: r36911

gcc/ChangeLog
gcc/config/h8300/h8300.md

index 0002f074993c9d79483261d270c21b2e55b494db..f542b85e95c7df2e20dfb45f314729f11facaf83 100644 (file)
@@ -1,3 +1,9 @@
+2000-10-17  Kazu Hirata  <kazu@hxi.com>
+
+       * config/h8300/h8300.md: Remove an unnecessary zero_extend
+       expander that is used when not optimizing.  Output a tab after
+       each assembly insns.
+
 2000-10-17  Chandrakala Chavva  <cchavva@redhat.com>
 
        * gcc.c: New options --target-help.
index 9ade006aa24a76453bc7b0e53486e51b07040b1c..b7d146132f184dc24f90c61a27b2f4a575dd1012 100644 (file)
   [(set (match_operand:SI 0 "register_operand" "")
        (zero_extend:SI (match_operand:HI 1 "register_operand" "")))]
   ""
-  "
-{
-  if (TARGET_H8300
-      && GET_CODE (operands[1]) != CONST_INT
-      && !optimize)
-    {
-      emit_insn (gen_zero_extendhisi2_h8300 (operands[0], operands[1]));
-      DONE;
-    }
-}")
-
-;; This is used when not optimizing.  It avoids severe code explosion
-;; due to poor register allocation.
-(define_expand "zero_extendhisi2_h8300"
-  [(set (reg:HI 1) (match_operand:HI 1 "general_operand" ""))
-   (set (reg:SI 0) (zero_extend:SI (reg:HI 1)))
-   (set (match_operand:SI 0 "general_operand" "") (reg:SI 0))]
-  "TARGET_H8300"
   "")
 
 ;; %e prints the high part of a CONST_INT, not the low part.  Arggh.
   "TARGET_H8300"
   "@
   sub.w        %e0,%e0
-  mov.w %f1,%f0\;sub.w %e0,%e0
-  mov.w %e1,%f0\;sub.w %e0,%e0"
+  mov.w        %f1,%f0\;sub.w  %e0,%e0
+  mov.w        %e1,%f0\;sub.w  %e0,%e0"
   [(set_attr "length" "2,4,4")
    (set_attr "cc" "clobber,clobber,clobber")])