diff options
author | Daniel Jacobowitz <dan@codesourcery.com> | 2009-01-13 03:05:10 +0000 |
---|---|---|
committer | Nathan Froyd <froydnj@gcc.gnu.org> | 2009-01-13 03:05:10 +0000 |
commit | 82fc74c7a62c273849e7152faff7ff8f44eb001e (patch) | |
tree | 09a9a8ee27889d6cc8e1b2004ce418ab96a4fc54 /gcc | |
parent | 55c8e6a320e63f3687748e20400d0ba46e3dc1df (diff) | |
download | gcc-82fc74c7a62c273849e7152faff7ff8f44eb001e.zip gcc-82fc74c7a62c273849e7152faff7ff8f44eb001e.tar.gz gcc-82fc74c7a62c273849e7152faff7ff8f44eb001e.tar.bz2 |
target-supports.exp (check_effective_target_powerpc64): New.
* lib/target-supports.exp (check_effective_target_powerpc64): New.
* gcc.target/powerpc/darwin-longlong.c: Explicitly require 64-bit
instruction support. Do not check for it at runtime.
From-SVN: r143324
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/powerpc/darwin-longlong.c | 20 |
2 files changed, 7 insertions, 19 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 513f6bc..d2e0d59 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2009-01-12 Daniel Jacobowitz <dan@codesourcery.com> + + * lib/target-supports.exp (check_effective_target_powerpc64): New. + * gcc.target/powerpc/darwin-longlong.c: Explicitly require 64-bit + instruction support. Do not check for it at runtime. + 2009-01-12 Jason Merrill <jason@redhat.com> PR c++/35109 diff --git a/gcc/testsuite/gcc.target/powerpc/darwin-longlong.c b/gcc/testsuite/gcc.target/powerpc/darwin-longlong.c index 866fb6c..0692b3d 100644 --- a/gcc/testsuite/gcc.target/powerpc/darwin-longlong.c +++ b/gcc/testsuite/gcc.target/powerpc/darwin-longlong.c @@ -1,17 +1,9 @@ /* { dg-do run { target powerpc*-*-* } } */ -/* { dg-xfail-if "" { "powerpc-*-eabispe*" "powerpc-ibm-aix*" } { "*" } { "" } } */ +/* { 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); |