diff options
| author | amodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-02-10 00:43:24 +0000 |
|---|---|---|
| committer | amodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-02-10 00:43:24 +0000 |
| commit | f9d5cfb5d5e5faa833bf4f07d4e343aa8202ba6c (patch) | |
| tree | 27e9483aba355a17f72cd5318aea03455f43329a | |
| parent | 826e19bc48cf9083a1dc4a34fec2eb60df3e2adf (diff) | |
| download | ppe42-gcc-f9d5cfb5d5e5faa833bf4f07d4e343aa8202ba6c.tar.gz ppe42-gcc-f9d5cfb5d5e5faa833bf4f07d4e343aa8202ba6c.zip | |
* gcc.dg/darwin-longlong.c: Only use r0 in asm for darwin.
* gcc.dg/cpp/assert4.c: Handle powerpc64.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77578 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/testsuite/ChangeLog | 3 | ||||
| -rw-r--r-- | gcc/testsuite/gcc.dg/cpp/assert4.c | 16 | ||||
| -rw-r--r-- | gcc/testsuite/gcc.dg/darwin-longlong.c | 4 |
3 files changed, 19 insertions, 4 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ca33d4c208e..2977ed9f39c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,8 @@ 2004-02-10 Alan Modra <amodra@bigpond.net.au> + * 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 <roger@eyesopen.com> diff --git a/gcc/testsuite/gcc.dg/cpp/assert4.c b/gcc/testsuite/gcc.dg/cpp/assert4.c index 82ae7aa6efb..db565a2d39b 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 ef925d69dd8..9a1dcd2c85f 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) |

