PR target/78633
* config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
RTL sharing.
From-SVN: r244516
+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
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;
}