* mips.md (trap_if): Use "$0" for the value zero.

From-SVN: r24053
This commit is contained in:
Jeffrey A Law 1998-12-01 23:50:04 +00:00 committed by Jeff Law
parent e3f6ee2303
commit b151501eba
2 changed files with 20 additions and 4 deletions

View File

@ -1,3 +1,7 @@
Wed Dec 2 00:47:31 1998 Jeffrey A Law (law@cygnus.com)
* mips.md (trap_if): Use "$0" for the value zero.
Tue Dec 1 20:49:49 1998 Ulrich Drepper <drepper@cygnus.com>
Stephen L Moshier <moshier@world.std.com>
Richard Henderson <rth@cygnus.com>

View File

@ -2431,10 +2431,22 @@
&& REGNO (operands[1]) == 0)
have_dep_anti = 1;
if (! have_dep_anti)
if (GENERATE_BRANCHLIKELY)
return \"%(beql\\t%0,%1,.+8\\n\\tbreak\\t%2%)\";
else
return \"%(bne\\t%0,%1,.+12\\n\\tnop\\n\\tbreak\\t%2%)\";
{
if (GENERATE_BRANCHLIKELY)
{
if (GET_CODE (operands[1]) == CONST_INT)
return \"%(beql\\t%0,$0,.+8\\n\\tbreak\\t%2%)\";
else
return \"%(beql\\t%0,%1,.+8\\n\\tbreak\\t%2%)\";
}
else
{
if (GET_CODE (operands[1]) == CONST_INT)
return \"%(bne\\t%0,$0,.+12\\n\\tnop\\n\\tbreak\\t%2%)\";
else
return \"%(bne\\t%0,%1,.+12\\n\\tnop\\n\\tbreak\\t%2%)\";
}
}
return \"\";
}"
[(set_attr "type" "unknown")