From 54b84aa9456004ceee2bceb813843525ee11bd7d Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Sat, 3 Dec 2016 17:37:13 +0000 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/lra-constraints.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 396580a59ba..496c691afdc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-12-03 Eric Botcazou + + * lra-constraints.c (emit_spill_move): Use gen_lowpart_SUBREG in all + cases to build a lowpart SUBREG. + 2016-12-03 Eric Botcazou David S. Miller diff --git a/gcc/lra-constraints.c b/gcc/lra-constraints.c index 260591acb06..e661aefe202 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 -- 2.30.2