From: kazu Date: Wed, 22 May 2002 11:21:31 +0000 (+0000) Subject: * config/h8300/h8300.md (*andorqi3): New. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9052cb60f17d0d0c08a729617ee9e58be04df964;p=thirdparty%2Fgcc.git * config/h8300/h8300.md (*andorqi3): New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53732 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 22ebdba7ef40..6085256bc39b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2002-05-22 Kazu Hirata + + * config/h8300/h8300.md (*andorqi3): New. + 2002-05-22 Neil Booth PR preprocessor/6517 diff --git a/gcc/config/h8300/h8300.md b/gcc/config/h8300/h8300.md index a3c445a93964..5dad99612a6b 100644 --- a/gcc/config/h8300/h8300.md +++ b/gcc/config/h8300/h8300.md @@ -1033,6 +1033,20 @@ "" "") +(define_insn "*andorqi3" + [(set (match_operand:QI 0 "register_operand" "=r") + (ior:QI (and:QI (match_operand:QI 2 "register_operand" "r") + (match_operand:QI 3 "const_int_operand" "n")) + (match_operand:QI 1 "register_operand" "0")))] + "exact_log2 (INTVAL (operands[3]) & 0xff) != -1" + "* +{ + operands[3] = GEN_INT (INTVAL (operands[3]) & 0xff); + return \"bld\\t%V3,%X2\;bst\\t%V3,%X0\"; +}" + [(set_attr "length" "4") + (set_attr "cc" "clobber")]) + (define_insn "*andorhi3" [(set (match_operand:HI 0 "register_operand" "=r") (ior:HI (and:HI (match_operand:HI 2 "register_operand" "r")