[PATCH] [MIPS] [Loongson] Specific integer instructions added ( How to test ’prefetchx‘?)
Richard Sandiford
rdsandiford@googlemail.com
Thu Jul 24 21:51:00 GMT 2008
"Ruan Beihong" <ruanbeihong@gmail.com> writes:
> I've seen the Loongson 2F manual carefully. The (d)div(u) is
> internally splited into one (d)div(u).g and one (d)mod(u).g. So I said
> before was wrong. The truth is that, (d)div(u).g and (d)mod(u).g are
> always faster than (d)div(u), at least the time spend on mflo/mfhi is
> saved.
OK, great. In that case, it should simply be a case of disabling
the divmod-related insns for Loongson, in addition to your patch.
(Probably stating the obvious there, sorry.)
Richard
More information about the Gcc-patches
mailing list