* config/h8300/h8300.md (*insv_si_1_n_lshiftrt_16): New.
authorKazu Hirata <kazu@cs.umass.edu>
Fri, 21 Mar 2003 20:01:34 +0000 (20:01 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Fri, 21 Mar 2003 20:01:34 +0000 (20:01 +0000)
From-SVN: r64677

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

index 3985860..55e15d3 100644 (file)
@@ -1,3 +1,7 @@
+2003-03-21  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * config/h8300/h8300.md (*insv_si_1_n_lshiftrt_16): New.
+
 2003-03-21  Dale Johannesen  <dalej@apple.com>
 
        * config/rs6000/rs6000.h (REG_ALLOC_ORDER):  Increase
index 4179754..5499421 100644 (file)
   [(set_attr "cc" "clobber")
    (set_attr "length" "4")])
 
+(define_insn "*insv_si_1_n_lshiftrt_16"
+  [(set (zero_extract:SI (match_operand:SI 0 "register_operand" "+r")
+                        (const_int 1)
+                        (match_operand:SI 1 "const_int_operand" "n"))
+       (lshiftrt:SI (match_operand:SI 2 "register_operand" "r")
+                    (const_int 16)))]
+  "(TARGET_H8300H || TARGET_H8300S)
+   && INTVAL (operands[1]) < 16"
+  "rotr.w\\t%e2\;rotl.w\\t%e2\;bst\\t%Z1,%Y0"
+  [(set_attr "cc" "clobber")
+   (set_attr "length" "6")])
+
 ;; extzv:SI
 
 (define_insn "*extzv_8_8"