OSDN Git Service

* lib/target-supports.exp (check_effective_target_powerpc64): New.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.target / powerpc / darwin-longlong.c
index b9392c0..0692b3d 100644 (file)
@@ -1,17 +1,9 @@
 /* { dg-do run { target powerpc*-*-* } } */
-/* { dg-xfail-if "" { "powerpc-*-eabispe*" "powerpc-ibm-aix*" } { "-mcpu=G5" } { "" } } */
+/* { dg-require-effective-target powerpc64 } */
 /* { dg-options "-mcpu=G5" } */
 
-#include <signal.h>
 #include <stdlib.h>
 
-void
-sig_ill_handler (int sig)
-{
-    exit(0);
-}
-
-
 int  msw(long long in)
 {
   union {
@@ -24,16 +16,6 @@ int  msw(long long in)
 
 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)
     abort();
   exit(0);