From: Michael Meissner Date: Tue, 22 Mar 2011 14:36:11 +0000 (+0000) Subject: Make vector-{1,2}.c run correctly on PowerPC 32-bit X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=956c23da96f023609598ff0d94f40719febf8a46;p=gcc.git Make vector-{1,2}.c run correctly on PowerPC 32-bit From-SVN: r171289 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a5d78c94cca..d13fab08bc4 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2011-03-22 Michael Meissner + + * gcc.dg/torture/vector-1.c: On powerpc add -fabi=altivec to avoid + failure on 32-bit systems. + * gcc.dg/torture/vector-2.c: Ditto. + 2011-03-22 Richard Guenther PR tree-optimization/48228 diff --git a/gcc/testsuite/gcc.dg/torture/vector-1.c b/gcc/testsuite/gcc.dg/torture/vector-1.c index 9ab78aaf53e..205fee6d6de 100644 --- a/gcc/testsuite/gcc.dg/torture/vector-1.c +++ b/gcc/testsuite/gcc.dg/torture/vector-1.c @@ -3,6 +3,8 @@ /* { dg-do run } */ /* { dg-options "-msse" { target { i?86-*-* x86_64-*-* } } } */ /* { dg-require-effective-target sse_runtime { target { i?86-*-* x86_64-*-* } } } */ +/* { dg-options "-mabi=altivec" { target { powerpc-*-* powerpc64-*-* } } } */ +/* { dg-require-effective-target vmx_hw { target { powerpc-*-* powerpc64--*-* } } } */ #define vector __attribute__((vector_size(16) )) diff --git a/gcc/testsuite/gcc.dg/torture/vector-2.c b/gcc/testsuite/gcc.dg/torture/vector-2.c index bff9f82cdad..6cc56cfae78 100644 --- a/gcc/testsuite/gcc.dg/torture/vector-2.c +++ b/gcc/testsuite/gcc.dg/torture/vector-2.c @@ -3,6 +3,8 @@ /* { dg-do run } */ /* { dg-options "-msse" { target { i?86-*-* x86_64-*-* } } } */ /* { dg-require-effective-target sse_runtime { target { i?86-*-* x86_64-*-* } } } */ +/* { dg-options "-mabi=altivec" { target { powerpc-*-* powerpc64-*-* } } } */ +/* { dg-require-effective-target vmx_hw { target { powerpc-*-* powerpc64--*-* } } } */ #define vector __attribute__((vector_size(16) ))