aboutsummaryrefslogtreecommitdiff
path: root/gcc/lra.c
diff options
context:
space:
mode:
authorVladimir Makarov <vmakarov@redhat.com>2013-06-08 18:37:40 +0000
committerVladimir Makarov <vmakarov@gcc.gnu.org>2013-06-08 18:37:40 +0000
commited52a84e3ffde82c52557d0f027488d9fe69563f (patch)
treeab8306145143473f85493065bdb87f06d1bef071 /gcc/lra.c
parent7b91690215d275028eacf31f75a22aaa9bc4f3b2 (diff)
downloadgcc-ed52a84e3ffde82c52557d0f027488d9fe69563f.zip
gcc-ed52a84e3ffde82c52557d0f027488d9fe69563f.tar.gz
gcc-ed52a84e3ffde82c52557d0f027488d9fe69563f.tar.bz2
re PR rtl-optimization/57559 (S/390: ICE with lra)
2013-06-08 Vladimir Makarov <vmakarov@redhat.com> PR rtl-optimization/57559 * lra-constraints.c (process_alt_operands): Don't discourage memory with known offset for offsetable memory constraint. * lra.c (lra_emit_add): Exchange y and z for 2-op add insn. 2013-06-08 Vladimir Makarov <vmakarov@redhat.com> PR rtl-optimization/57559 * gcc.target/s390/pr57559.c : New test. From-SVN: r199859
Diffstat (limited to 'gcc/lra.c')
-rw-r--r--gcc/lra.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/lra.c b/gcc/lra.c
index 7c6bff1..51f1707 100644
--- a/gcc/lra.c
+++ b/gcc/lra.c
@@ -306,11 +306,11 @@ lra_emit_add (rtx x, rtx y, rtx z)
|| (disp != NULL_RTX && ! CONSTANT_P (disp))
|| (scale != NULL_RTX && ! CONSTANT_P (scale)))
{
- /* Its is not an address generation. Probably we have no 3 op
+ /* It is not an address generation. Probably we have no 3 op
add. Last chance is to use 2-op add insn. */
lra_assert (x != y && x != z);
- emit_move_insn (x, z);
- insn = gen_add2_insn (x, y);
+ emit_move_insn (x, y);
+ insn = gen_add2_insn (x, z);
emit_insn (insn);
}
else