diff options
author | Vladimir Makarov <vmakarov@redhat.com> | 2013-06-08 18:37:40 +0000 |
---|---|---|
committer | Vladimir Makarov <vmakarov@gcc.gnu.org> | 2013-06-08 18:37:40 +0000 |
commit | ed52a84e3ffde82c52557d0f027488d9fe69563f (patch) | |
tree | ab8306145143473f85493065bdb87f06d1bef071 /gcc/lra.c | |
parent | 7b91690215d275028eacf31f75a22aaa9bc4f3b2 (diff) | |
download | gcc-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |