Fix for gcc target/13250 to correctly compile rotations, e.g. in

sha256 code in pkgtools/digest.

Ok by Matthew Green <mrg>.

2004-05-28  Kaz Kojima  <kkojima@gcc.gnu.org>

	PR target/13250
	* config/sh/sh.md (rotlsi3): Use emit_move_insn.
This commit is contained in:
uwe 2004-05-29 00:49:15 +00:00
parent 9da2eaca32
commit 1161112f12
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-05-28 Kaz Kojima <kkojima@gcc.gnu.org>
PR target/13250
* config/sh/sh.md (rotlsi3): Use emit_move_insn.
2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
PR c/11449

View File

@ -2174,7 +2174,7 @@
parts[0] = gen_reg_rtx (SImode);
parts[1] = gen_reg_rtx (SImode);
emit_insn (gen_rotlsi3_16 (parts[2-choice], operands[1]));
parts[choice-1] = operands[1];
emit_move_insn (parts[choice-1], operands[1]);
emit_insn (gen_ashlsi3 (parts[0], parts[0], GEN_INT (8)));
emit_insn (gen_lshrsi3 (parts[1], parts[1], GEN_INT (8)));
emit_insn (gen_iorsi3 (operands[0], parts[0], parts[1]));