public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH/RFA] PR target/13250
@ 2004-05-28  7:09 Kaz Kojima
  2004-05-28 10:12 ` Alexandre Oliva
  2004-05-28 15:05 ` Joern Rennecke
  0 siblings, 2 replies; 16+ messages in thread
From: Kaz Kojima @ 2004-05-28  7:09 UTC (permalink / raw)
  To: gcc-patches; +Cc: joern.rennecke, aoliva

Hi,

It seems that PR target/13250
<URL:http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13250>
is a problem caused by a direct substitution operands[1] for parts[?]
in rotlsi3 expand of SH.  The appended patch fixes it.
It's tested with bootstrap 3.4 on sh4-unknown-linux-gnu and regtested
on mainline for x86 cross to sh4-unknown-linux-gnu, though now mainline
fails in building c++ library for this target without -fno-schedule-insns.

Regards,
	kaz
--
	PR target/13250
	* config/sh/sh.md (rotlsi3): Use emit_move_insn.

diff -uprN ORIG/gcc/gcc/config/sh/sh.md LOCAL/gcc/gcc/config/sh/sh.md
--- ORIG/gcc/gcc/config/sh/sh.md	2004-05-14 10:08:34.000000000 +0900
+++ LOCAL/gcc/gcc/config/sh/sh.md	2004-05-27 08:32:37.000000000 +0900
@@ -2194,7 +2194,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]));

^ permalink raw reply	[flat|nested] 16+ messages in thread
[parent not found: <no.id>]

end of thread, other threads:[~2004-06-07 20:20 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-28  7:09 [PATCH/RFA] PR target/13250 Kaz Kojima
2004-05-28 10:12 ` Alexandre Oliva
2004-05-28 11:01   ` Kaz Kojima
2004-05-28 14:23     ` Gabriel Dos Reis
2004-05-28 15:05 ` Joern Rennecke
2004-05-28 15:45   ` Kaz Kojima
2004-05-28 20:18     ` Joern Rennecke
2004-05-29 16:53       ` Kaz Kojima
2004-06-01 12:19         ` Joern Rennecke
2004-06-01 12:46           ` Kaz Kojima
2004-06-02 16:42             ` Joern Rennecke
2004-06-03  4:02               ` Kaz Kojima
2004-06-04 14:45                 ` building sh-elf / sh-linux (Was: Re: [PATCH/RFA] PR target/13250) Joern Rennecke
2004-06-07 20:48                   ` Joern Rennecke
     [not found] <no.id>
2004-06-04 15:56 ` Joern Rennecke
2004-06-04 18:25   ` Joern Rennecke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).