Fix thinko in transition to memop_ret type (PR middle-end/88246).
authorMartin Liska <mliska@suse.cz>
Thu, 29 Nov 2018 17:17:39 +0000 (18:17 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 29 Nov 2018 17:17:39 +0000 (17:17 +0000)
2018-11-29  Martin Liska  <mliska@suse.cz>

PR middle-end/88246
* builtins.c (expand_movstr): Fix thinko introduced
when switching to the new enum.

From-SVN: r266631

gcc/ChangeLog
gcc/builtins.c

index 49b7830..02c2403 100644 (file)
@@ -1,3 +1,9 @@
+2018-11-29  Martin Liska  <mliska@suse.cz>
+
+       PR middle-end/88246
+       * builtins.c (expand_movstr): Fix thinko introduced
+       when switching to the new enum.
+
 2018-11-29  qing zhao  <qing.zhao@oracle.com>
 
        * cif-code.def (EXTERN_LIVE_ONLY_STATIC): New CIF code.
index dcac49d..537228c 100644 (file)
@@ -3931,7 +3931,7 @@ expand_movstr (tree dest, tree src, rtx target, memop_ret retmode)
 
   dest_mem = get_memory_rtx (dest, NULL);
   src_mem = get_memory_rtx (src, NULL);
-  if (retmode != RETURN_BEGIN)
+  if (retmode == RETURN_BEGIN)
     {
       target = force_reg (Pmode, XEXP (dest_mem, 0));
       dest_mem = replace_equiv_address (dest_mem, target);