]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
lra-constraints.c (emit_spill_move): Use gen_lowpart_SUBREG in all cases to build...
authorEric Botcazou <ebotcazou@adacore.com>
Sat, 3 Dec 2016 17:37:13 +0000 (17:37 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Sat, 3 Dec 2016 17:37:13 +0000 (17:37 +0000)
* lra-constraints.c (emit_spill_move): Use gen_lowpart_SUBREG in all
cases to build a lowpart SUBREG.

From-SVN: r243222

gcc/ChangeLog
gcc/lra-constraints.c

index 396580a59ba1781bfc906bbde8de3b80d5ef4ec9..496c691afdce7cac075f994777c4b91a7bdb93fb 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
index 260591acb06bbc4d567d59d02743bc90daf13645..e661aefe202e70cb0fe439a4a568f41f91552de4 100644 (file)
@@ -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