re PR target/78633 ([SH] libgcc/fp-bit.c:944:1: error: invalid rtl sharing found in the insn)

PR target/78633
	* config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
	RTL sharing.

From-SVN: r244516
This commit is contained in:
Kaz Kojima 2017-01-17 04:07:51 +00:00
parent e6750e5ce0
commit d27c8bec6f
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2017-01-17 Kaz Kojima <kkojima@gcc.gnu.org>
PR target/78633
* config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
RTL sharing.
2017-01-17 Alan Modra <amodra@gmail.com>
PR target/79066

View file

@ -858,7 +858,8 @@
operands of the tstsi_t insn, which is generally the case. */
if (dump_file)
fprintf (dump_file, "cmpeqsi_t: replacing with tstsi_t\n");
emit_insn (gen_tstsi_t (XEXP (op.set_src, 0), XEXP (op.set_src, 1)));
emit_insn (gen_tstsi_t (copy_rtx (XEXP (op.set_src, 0)),
copy_rtx (XEXP (op.set_src, 1))));
DONE;
}