From: Alan Modra Date: Tue, 10 Feb 2004 00:43:24 +0000 (+0000) Subject: darwin-longlong.c: Only use r0 in asm for darwin. X-Git-Tag: releases/gcc-4.0.0~10224 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=99bee03ac222a9cbddfa33edcde3cb6f9b24d01c;p=thirdparty%2Fgcc.git darwin-longlong.c: Only use r0 in asm for darwin. * gcc.dg/darwin-longlong.c: Only use r0 in asm for darwin. * gcc.dg/cpp/assert4.c: Handle powerpc64. From-SVN: r77578 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ca33d4c208e5..2977ed9f39c4 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,8 @@ 2004-02-10 Alan Modra + * gcc.dg/darwin-longlong.c: Only use r0 in asm for darwin. + * gcc.dg/cpp/assert4.c: Handle powerpc64. + * gcc.dg/debug/20020327-1.c: xfail for powerpc64. 2004-02-09 Roger Sayle diff --git a/gcc/testsuite/gcc.dg/cpp/assert4.c b/gcc/testsuite/gcc.dg/cpp/assert4.c index 82ae7aa6efb3..db565a2d39b5 100644 --- a/gcc/testsuite/gcc.dg/cpp/assert4.c +++ b/gcc/testsuite/gcc.dg/cpp/assert4.c @@ -344,10 +344,18 @@ #endif #if defined __powerpc__ -# if !#cpu(powerpc) || !#machine(powerpc) -# error -# endif -#elif #cpu(powerpc) || #machine(powerpc) +# if defined __powerpc64__ +# if (#cpu(powerpc) || #machine(powerpc) \ + || !#cpu(powerpc64) || !#machine(powerpc64)) +# error +# else +# if (!#cpu(powerpc) || !#machine(powerpc) \ + || #cpu(powerpc64) || #machine(powerpc64)) +# error +# endif +# endif +#elif (#cpu(powerpc) || #machine(powerpc) \ + || #cpu(powerpc64) || #machine(powerpc64)) # error #endif diff --git a/gcc/testsuite/gcc.dg/darwin-longlong.c b/gcc/testsuite/gcc.dg/darwin-longlong.c index ef925d69dd86..9a1dcd2c85fd 100644 --- a/gcc/testsuite/gcc.dg/darwin-longlong.c +++ b/gcc/testsuite/gcc.dg/darwin-longlong.c @@ -25,7 +25,11 @@ int main() /* Exit on systems without 64bit instructions. */ signal (SIGILL, sig_ill_handler); +#ifdef __MACH__ asm volatile ("extsw r0,r0"); +#else + asm volatile ("extsw 0,0"); +#endif signal (SIGILL, SIG_DFL); if (msw(1) != 0)