This is the mail archive of the gcc-patches@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]

Re: Avoiding MIPS mthi/mflo and mtlo/mfhi hazards


At Mon, 19 Apr 2004 22:10:26 +0000 (UTC), "Eric Christopher" wrote:
> Yeah, this is fine with me. Why, of course, the hw vendors made this
> dependence... :)

It's in the MIPS architecture AFAIK since since r2000.

Given that AFAIK the processor can finish hi or lo indepdently, in
separate cycles, you only know that the op is completely done by
reading them out (or, reading out the half that you care about).

If you write one half before the op is done, what makes you think the
other half *should* be OK?

Sounds like pathological SW to me.  8-)


cgd


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