[PATCH] PowerPC: Add functions for shared resources hints

Ryan S. Arnold ryan.arnold@gmail.com
Tue Nov 27 17:55:00 GMT 2012


On Tue, Nov 27, 2012 at 11:31 AM, Roland McGrath <roland@hack.frob.com> wrote:
>> +static int
>> +do_test (void)
>> +{
>> +  __ppc_yield ();
>> +  __ppc_mdoio ();
>> +  __ppc_mdoom ();
>> +  return 0;
>> +}
>
> I don't understand the point of this test.
> It doesn't actually verify anything but that it compiles.

He actually used this test to verify that binutils was missing support
for the ISA 2.06 asm insns 'yield', 'mdoom', 'mdoio'.  Hence the
change to using the 'or' forms.  As it stands this test doesn't do
much now.

Ryan



More information about the Libc-alpha mailing list