(output_ior): Handle "ior" against zero.

From-SVN: r2702
This commit is contained in:
Richard Stallman 1992-11-06 08:28:06 +00:00
parent b10248a326
commit ec583967dc
1 changed files with 3 additions and 0 deletions

View File

@ -1254,6 +1254,9 @@ output_ior (operands)
{
unsigned mask = INTVAL (operands[2]);
int bs0, bs1, bs2, p, len;
if (INTVAL (operands[2]) == 0)
return "copy %1,%0";
for (bs0 = 0; bs0 < 32; bs0++)
if ((mask & (1 << bs0)) != 0)