This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: testsuite tweaks for powerpc64
- From: Geoff Keating <geoffk at desire dot geoffk dot org>
- To: amodra at bigpond dot net dot au
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 9 Feb 2004 12:04:15 -0800
- Subject: Re: testsuite tweaks for powerpc64
- References: <20040209125657.GK12016@bubble.modra.org>
* gcc.dg/darwin-longlong.c: Don't use r0 in asm.
The Darwin assembler requires r0, so this is not OK.
-# if !#cpu(powerpc) || !#machine(powerpc)
+# if ((!defined(__powerpc64__) \
+ && (!#cpu(powerpc) || !#machine(powerpc) \
+ || #cpu(powerpc64) || #machine(powerpc64))) \
+ || (defined(__powerpc64__) \
+ && (#cpu(powerpc) || #machine(powerpc) \
+ || !#cpu(powerpc64) || !#machine(powerpc64)))
I really think this is too complicated. How about
#if defined(__powerpc64__)
some tests
#else
original tests
#endif
--
- Geoffrey Keating <geoffk@geoffk.org>