Commit 340aa7f6 by Jim Wilson

((subreg_realpart_p): New function.

(copy_rtx_and_substitute): Use subreg_realpart_p
instead of subreg_lowpart_p for CONCAT.

From-SVN: r6666
parent 6be160ff
...@@ -2116,7 +2116,7 @@ copy_rtx_and_substitute (orig, map) ...@@ -2116,7 +2116,7 @@ copy_rtx_and_substitute (orig, map)
return gen_rtx (SUBREG, GET_MODE (orig), SUBREG_REG (copy), return gen_rtx (SUBREG, GET_MODE (orig), SUBREG_REG (copy),
SUBREG_WORD (orig) + SUBREG_WORD (copy)); SUBREG_WORD (orig) + SUBREG_WORD (copy));
else if (GET_CODE (copy) == CONCAT) else if (GET_CODE (copy) == CONCAT)
return (subreg_lowpart_p (orig) ? XEXP (copy, 0) : XEXP (copy, 1)); return (subreg_realpart_p (orig) ? XEXP (copy, 0) : XEXP (copy, 1));
else else
return gen_rtx (SUBREG, GET_MODE (orig), copy, return gen_rtx (SUBREG, GET_MODE (orig), copy,
SUBREG_WORD (orig)); SUBREG_WORD (orig));
......
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