h8300.md (*extzv_8_8): New.

* config/h8300/h8300.md (*extzv_8_8): New.
	(*extzv_8_16): Likewise.

From-SVN: r59832
This commit is contained in:
Kazu Hirata 2002-12-04 21:01:54 +00:00 committed by Kazu Hirata
parent 6c73ad72f8
commit 6bd6fd35db
2 changed files with 25 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2002-12-04 Kazu Hirata <kazu@cs.umass.edu>
* config/h8300/h8300.md (*extzv_8_8): New.
(*extzv_8_16): Likewise.
2002-12-04 Jason Merrill <jason@redhat.com>
PR c++/8461, c++/8625

View File

@ -2231,6 +2231,26 @@
;; COMBINE PATTERNS
;; -----------------------------------------------------------------
(define_insn "*extzv_8_8"
[(set (match_operand:SI 0 "register_operand" "=r")
(zero_extract:SI (match_operand:SI 1 "register_operand" "r")
(const_int 8)
(const_int 8)))]
"TARGET_H8300H || TARGET_H8300S"
"mov.b\\t%x1,%w0\;extu.w\\t%f0\;extu.l\\t%S0"
[(set_attr "cc" "set_znv")
(set_attr "length" "6")])
(define_insn "*extzv_8_16"
[(set (match_operand:SI 0 "register_operand" "=r")
(zero_extract:SI (match_operand:SI 1 "register_operand" "r")
(const_int 8)
(const_int 16)))]
"TARGET_H8300H || TARGET_H8300S"
"mov.w\\t%e1,%f0\;extu.w\\t%f0\;extu.l\\t%S0"
[(set_attr "cc" "set_znv")
(set_attr "length" "6")])
(define_insn ""
[(set (match_operand:HI 0 "register_operand" "=r")
(ior:HI (zero_extend:HI (match_operand:QI 1 "register_operand" "r"))