Commit ec583967 by Richard Stallman

(output_ior): Handle "ior" against zero.

From-SVN: r2702
parent b10248a3
...@@ -1254,6 +1254,9 @@ output_ior (operands) ...@@ -1254,6 +1254,9 @@ output_ior (operands)
{ {
unsigned mask = INTVAL (operands[2]); unsigned mask = INTVAL (operands[2]);
int bs0, bs1, bs2, p, len; int bs0, bs1, bs2, p, len;
if (INTVAL (operands[2]) == 0)
return "copy %1,%0";
for (bs0 = 0; bs0 < 32; bs0++) for (bs0 = 0; bs0 < 32; bs0++)
if ((mask & (1 << bs0)) != 0) if ((mask & (1 << bs0)) != 0)
......
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