summaryrefslogtreecommitdiff
path: root/gcc/reload1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/reload1.c')
-rw-r--r--gcc/reload1.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/reload1.c b/gcc/reload1.c
index e4ca0e7aed7..0ecb2fe378e 100644
--- a/gcc/reload1.c
+++ b/gcc/reload1.c
@@ -5414,6 +5414,7 @@ gen_input_reload (reloadreg, in, before_insn)
we emit below. */
if (CONSTANT_P (XEXP (in, 1))
+ || GET_CODE (XEXP (in, 1)) == MEM
|| (GET_CODE (XEXP (in, 1)) == REG
&& REGNO (XEXP (in, 1)) >= FIRST_PSEUDO_REGISTER))
move_operand = XEXP (in, 1), other_operand = XEXP (in, 0);