Commit d0940a55 by Kazu Hirata Committed by Kazu Hirata

h8300.md (*insv_si_1_n): New.

	* config/h8300/h8300.md (*insv_si_1_n): New.
	(*insv_si_1_n_lshiftrt): Likewise.

From-SVN: r64620
parent c876997f
2003-03-20 Kazu Hirata <kazu@cs.umass.edu>
* config/h8300/h8300.md (*insv_si_1_n): New.
(*insv_si_1_n_lshiftrt): Likewise.
2003-03-20 Roger Sayle <roger@eyesopen.com> 2003-03-20 Roger Sayle <roger@eyesopen.com>
* fold-const.c (fold_mathfn_compare): New function to simplify * fold-const.c (fold_mathfn_compare): New function to simplify
......
...@@ -2643,6 +2643,31 @@ ...@@ -2643,6 +2643,31 @@
;; COMBINE PATTERNS ;; COMBINE PATTERNS
;; ----------------------------------------------------------------- ;; -----------------------------------------------------------------
;; insv:SI
(define_insn "*insv_si_1_n"
[(set (zero_extract:SI (match_operand:SI 0 "register_operand" "+r")
(const_int 1)
(match_operand:SI 1 "const_int_operand" "n"))
(match_operand:SI 2 "register_operand" "r"))]
"(TARGET_H8300H || TARGET_H8300S)
&& INTVAL (operands[1]) < 16"
"bld\\t#0,%w2\;bst\\t%Z1,%Y0"
[(set_attr "cc" "clobber")
(set_attr "length" "4")])
(define_insn "*insv_si_1_n_lshiftrt"
[(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")
(match_operand:SI 3 "const_int_operand" "n")))]
"(TARGET_H8300H || TARGET_H8300S)
&& INTVAL (operands[1]) < 16"
"bld\\t%Z3,%Y2\;bst\\t%Z1,%Y0"
[(set_attr "cc" "clobber")
(set_attr "length" "4")])
;; extzv:SI ;; extzv:SI
(define_insn "*extzv_8_8" (define_insn "*extzv_8_8"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment