Commit ee437932 by J"orn Rennecke Committed by Joern Rennecke

* h8300.md (*andorhi3): New pattern.

From-SVN: r45289
parent 63a57e0f
Thu Aug 30 18:10:56 2001 J"orn Rennecke <amylaar@redhat.com>
* h8300.md (*andorhi3): New pattern.
Thu Aug 30 16:00:31 2001 J"orn Rennecke <amylaar@redhat.com>
* h8300.c (dosize): Fix test for "sub".
......
......@@ -1013,6 +1013,24 @@
[(set_attr "length" "2,4")
(set_attr "cc" "set_znv,clobber")])
(define_insn "*andorhi3"
[(set (match_operand:HI 0 "register_operand" "=r")
(ior:HI (and:HI (match_operand:HI 2 "register_operand" "r")
(match_operand:HI 3 "p_operand" "P"))
(match_operand:HI 1 "register_operand" "0")))]
""
"*
{
if (INTVAL (operands[3]) > 128)
{
operands[3] = GEN_INT (INTVAL (operands[3]) >> 8);
return \"bld\t%V3,%t2\;bst\t%V3,%t0\";
}
return \"bld\t%V3,%s2\;bst\t%V3,%s0\";
}"
[(set_attr "length" "4")
(set_attr "cc" "clobber")])
(define_expand "andsi3"
[(set (match_operand:SI 0 "register_operand" "")
(and:SI (match_operand:SI 1 "register_operand" "")
......
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