public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "kkojima at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/13250] [SH] Gcc code for rotation clobbers the register, but gcc continues to use the register as if it was not clobbered Date: Thu, 27 May 2004 17:31:00 -0000 [thread overview] Message-ID: <20040527031907.18441.qmail@sourceware.org> (raw) In-Reply-To: <20031201014925.13250.uwe@netbsd.org> ------- Additional Comments From kkojima at gcc dot gnu dot org 2004-05-27 03:19 ------- This looks an SH target specific problem when generating rtl for rotation like (e << 8) | (e >> 24). It seems the patch below for sh.md fixes this. I'll propose it to gcc-patch list after bootstrap and regtest. --- 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])); -- What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |kkojima at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED Component|rtl-optimization |target http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13250
next prev parent reply other threads:[~2004-05-27 3:19 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-12-01 1:49 [Bug optimization/13250] New: " uwe at netbsd dot org 2003-12-01 1:50 ` [Bug optimization/13250] " uwe at netbsd dot org 2003-12-01 1:55 ` pinskia at gcc dot gnu dot org 2004-01-21 4:03 ` dhazeghi at yahoo dot com 2004-05-27 17:31 ` kkojima at gcc dot gnu dot org [this message] 2004-05-28 16:05 ` [Bug target/13250] " uwe at ptc dot spbu dot ru 2004-05-28 20:17 ` kkojima at gcc dot gnu dot org 2004-05-28 21:04 ` cvs-commit at gcc dot gnu dot org 2004-05-28 22:18 ` [Bug target/13250] [3.4 only] " pinskia at gcc dot gnu dot org 2004-06-01 0:08 ` cvs-commit at gcc dot gnu dot org 2004-06-01 0:13 ` pinskia at gcc dot gnu dot org 2004-07-26 0:48 ` cvs-commit at gcc dot gnu dot org 2004-07-26 0:52 ` pinskia at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20040527031907.18441.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).