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: testsuite tweaks for powerpc64


On Mon, Feb 09, 2004 at 02:06:11PM -0800, Dale Johannesen wrote:
> On Feb 9, 2004, at 1:48 PM, Alan Modra wrote:
> >On Mon, Feb 09, 2004 at 10:02:19AM -0800, Dale Johannesen wrote:
> >>On Feb 9, 2004, at 4:56 AM, Alan Modra wrote
> >>This is wrong (assuming the test is Darwin-specific as its name
> >>suggests).
> >>http://gcc.gnu.org/ml/gcc-patches/2004-02/msg00122.html
> >>The -mregnames option doesn't exist on Darwin.
> >
> > How about using
> >
> >asm volatile ("extsw %r0,%r0");
> >
> >instead?
> 
> No, the darwin assembler won't take that either.
> This works for me, how about you?
> 
> #ifdef __APPLE__
>   asm volatile ("extsw r0,r0");
> #else
>   asm volatile ("extsw 0,0");
> #endif

Yes.  I poked around a little in gcc and found that darwin didn't use
'%' on reg names, hence the patch I posted in reply to Geoff's email.
I happened to choose #ifdef __MACH__ instead.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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