On Thu, Jul 29, 2021 at 08:30:52AM -0500, Bill Schmidt wrote:
> * config/rs6000/rs6000-builtin-new.def: Add always, power5, and
> power6 stanzas.
> + unsigned long __builtin_ppc_mftb ();
> + MFTB rs6000_mftb_di {32bit}
I'm not sure what {32bit} means... The builtin exists on both 32-bit
and on 64-bit, and returns what is a "long" in both cases. The point
is that it is just a single "mfspr 268" always, which is fast, and
importantly has fixed and low latency.
Modulo perhaps that, okay for trunk. Thanks!
Segher