This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/28126] gcc moves an expensive instruction outside of a conditional
- From: "anemo at mba dot ocn dot ne dot jp" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Jul 2006 14:58:46 -0000
- Subject: [Bug target/28126] gcc moves an expensive instruction outside of a conditional
- References: <bug-28126-12556@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from anemo at mba dot ocn dot ne dot jp 2006-07-13 14:58 -------
(In reply to comment #2)
> Although I don't know much about the instruction scheduling, I had
> a similar problem on SH and it was workarounded with emitting blockage
> insns. The patch below might work for you, though I'm not sure if
> it's the right thing to do.
Thanks. With this patch, gcc 4.1.1 produces expected output.
It seems gcc 4.2 does not move rdhwr before branch without this patch, but I
can not see why.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28126