Commit ea8262b0 by Richard Kenner

(gen_lowpart): If gen_lowpart_common fails for a REG, load it into a

pseudo and try again.

From-SVN: r10349
parent 4a368461
...@@ -857,6 +857,13 @@ gen_lowpart (mode, x) ...@@ -857,6 +857,13 @@ gen_lowpart (mode, x)
if (result) if (result)
return result; return result;
else if (GET_CODE (x) == REG)
{
/* Must be a hard reg that's not valid in MODE. */
result = gen_lowpart_common (mode, copy_to_reg (x));
if (result == 0)
abort ();
}
else if (GET_CODE (x) == MEM) else if (GET_CODE (x) == MEM)
{ {
/* The only additional case we can do is MEM. */ /* The only additional case we can do is MEM. */
......
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