diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2016-12-03 17:37:13 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2016-12-03 17:37:13 +0000 |
commit | 54b84aa9456004ceee2bceb813843525ee11bd7d (patch) | |
tree | a3752b2d3d92ea304276205cea4e8546b7bf607d | |
parent | 7c3cace17c44e3fa1bf8f7128d2f9b8fefb4f865 (diff) | |
download | gcc-54b84aa9456004ceee2bceb813843525ee11bd7d.zip gcc-54b84aa9456004ceee2bceb813843525ee11bd7d.tar.gz gcc-54b84aa9456004ceee2bceb813843525ee11bd7d.tar.bz2 |
lra-constraints.c (emit_spill_move): Use gen_lowpart_SUBREG in all cases to build a lowpart SUBREG.
* lra-constraints.c (emit_spill_move): Use gen_lowpart_SUBREG in all
cases to build a lowpart SUBREG.
From-SVN: r243222
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/lra-constraints.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 396580a..496c691 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,4 +1,9 @@ 2016-12-03 Eric Botcazou <ebotcazou@adacore.com> + + * lra-constraints.c (emit_spill_move): Use gen_lowpart_SUBREG in all + cases to build a lowpart SUBREG. + +2016-12-03 Eric Botcazou <ebotcazou@adacore.com> David S. Miller <davem@davemloft.net> * config/sparc/constraints.md (U): Adjust comment. diff --git a/gcc/lra-constraints.c b/gcc/lra-constraints.c index 260591a..e661aef 100644 --- a/gcc/lra-constraints.c +++ b/gcc/lra-constraints.c @@ -1109,9 +1109,9 @@ emit_spill_move (bool to_p, rtx mem_pseudo, rtx val) dependent macro HARD_REGNO_CALLER_SAVE_MODE. */ if (! MEM_P (val)) { - val = gen_rtx_SUBREG (GET_MODE (mem_pseudo), - GET_CODE (val) == SUBREG ? SUBREG_REG (val) : val, - 0); + val = gen_lowpart_SUBREG (GET_MODE (mem_pseudo), + GET_CODE (val) == SUBREG + ? SUBREG_REG (val) : val); LRA_SUBREG_P (val) = 1; } else |