* g++.dg/simd-2.C: xfail on ppc64-linux.

From-SVN: r77700
This commit is contained in:
Hartmut Penner 2004-02-12 10:24:16 +00:00 committed by Hartmut Penner
parent 6e7c2fe3fb
commit a980dd9b54
2 changed files with 11 additions and 19 deletions

View File

@ -1,3 +1,7 @@
2004-02-12 Hartmut Penner <hpenner@de.ibm.com>
* g++.dg/simd-2.C: xfail on ppc64-linux.
2004-02-11 Joseph S. Myers <jsm@polyomino.org.uk>
PR c/456

View File

@ -2,21 +2,11 @@
// Contributed by Aldy Hernandez (aldy@quesejoda.com).
// { dg-options "-O" }
// { dg-options "-O -w" { target i?86-*-* } }
// { dg-options "-O -maltivec" { target powerpc64-*-linux* } }
// { dg-do run }
// { dg-error "" "PR target/12916" { target sparc64-*-* sparcv9-*-* } 23 }
// { dg-error "" "PR target/12916" { target sparc-*-* } 25 }
#ifdef __powerpc64__
#include <signal.h>
extern void
exit (int);
// { dg-options "-O -w -maltivec" { target powerpc64-*-linux* } }
// { dg-do run { xfail "powerpc64-*-linux*"} }
// { dg-error "" "PR target/12916" { target sparc64-*-* sparcv9-*-* } 13 }
// { dg-error "" "PR target/12916" { target sparc-*-* } 15 }
void
sig_ill_handler (int sig)
{
exit(0);
}
#endif
typedef int __attribute__((mode(V4SI))) vecint;
vecint vecfunc (vecint beachbum)
@ -55,11 +45,9 @@ void f1 (void)
int main ()
{
#ifdef __powerpc64__
/* Exit on systems without altivec. */
signal (SIGILL, sig_ill_handler);
asm volatile (".long 0x10000484");
signal (SIGILL, SIG_DFL);
#if defined(__powerpc64__) && defined(__linux__)
// Don't run on ppc64-linux, since not always AltiVec regs available
return -1;
#endif
f1 ();
return 0;