From: Kazu Hirata Date: Thu, 5 Dec 2002 14:54:47 +0000 (+0000) Subject: * config/h8300/h8300.md (*andorsi3_shift_8): New. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=94f09825cbb53c672d72188a136f7589575e5259;p=gcc.git * config/h8300/h8300.md (*andorsi3_shift_8): New. From-SVN: r59860 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4a46107d6ca..d79b6ca0490 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2002-12-05 Kazu Hirata + + * config/h8300/h8300.md (*andorsi3_shift_8): New. + 2002-12-05 Kazu Hirata * config/h8300/h8300.c (shift_alg_si): Optimize ashift:HI and diff --git a/gcc/config/h8300/h8300.md b/gcc/config/h8300/h8300.md index 15ade253c06..7ca46ce4de6 100644 --- a/gcc/config/h8300/h8300.md +++ b/gcc/config/h8300/h8300.md @@ -1155,6 +1155,17 @@ [(set_attr "length" "6") (set_attr "cc" "clobber")]) +(define_insn "*andorsi3_shift_8" + [(set (match_operand:SI 0 "register_operand" "=r") + (ior:SI (and:SI (ashift:SI (match_operand:SI 2 "register_operand" "r") + (const_int 8)) + (const_int 65280)) + (match_operand:SI 1 "register_operand" "0")))] + "" + "or.b\\t%w2,%x0" + [(set_attr "length" "2") + (set_attr "cc" "clobber")]) + (define_expand "andsi3" [(set (match_operand:SI 0 "register_operand" "") (and:SI (match_operand:SI 1 "register_operand" "")