On Fri, Sep 14, 2012 at 4:52 PM, Segher Boessenkool
<seg...@kernel.crashing.org> wrote:
>>> I don't think TARGET_MFCRF is correct.  For example, if you use
>>> -mcpu=powerpc64 (which doesn't set this flag) you will get code
>>> that does not run on the newer machines.
>>
>> Sorry, but it seems to be working here...
>> I explain how I tested this in the end of the email.
>
> David tells me all current CPUs actually do support the MFTB insns
> just fine, so that there is no problem.

There is no ideal solution and this method will work on all PowerPC
targets with a combination of GCC and Binutils support., so I think
this is the best we can do.

Thanks, David

Reply via email to