This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/28126] gcc moves an expensive instruction outside of a conditional



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]