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


	* 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>


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