Commit cac01076 by Jakub Jelinek Committed by Jakub Jelinek

re PR target/6561 (sparc-sun-solaris2.7 C testsuite failure w/-mcpu=ultrasparc…

re PR target/6561 (sparc-sun-solaris2.7 C testsuite failure w/-mcpu=ultrasparc in execute/950511-1.c)

	PR target/6561
	* config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.

From-SVN: r53197
parent 98791e3a
2002-05-05 Jakub Jelinek <jakub@redhat.com>
PR target/6561
* config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
2002-05-05 Richard Henderson <rth@redhat.com>
* config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
......
......@@ -5489,6 +5489,13 @@
else
return \"sllx\\t%H1, 32, %3\\n\\tor\\t%L1, %3, %3\\n\\tmulx\\t%3, %2, %3\\n\\tsrlx\\t%3, 32, %H0\\n\\tmov\\t%3, %L0\";
}
else if (rtx_equal_p (operands[1], operands[2]))
{
if (which_alternative == 1)
return \"or\\t%L1, %H1, %H1\\n\\tmulx\\t%H1, %H1, %L0\;srlx\\t%L0, 32, %H0\";
else
return \"sllx\\t%H1, 32, %3\\n\\tor\\t%L1, %3, %3\\n\\tmulx\\t%3, %3, %3\\n\\tsrlx\\t%3, 32, %H0\\n\\tmov\\t%3, %L0\";
}
if (sparc_check_64 (operands[2], insn) <= 0)
output_asm_insn (\"srl\\t%L2, 0, %L2\", operands);
if (which_alternative == 1)
......
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