diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/powerpc/vsx-extract-1.c')
-rw-r--r-- | gcc/testsuite/gcc.target/powerpc/vsx-extract-1.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/gcc/testsuite/gcc.target/powerpc/vsx-extract-1.c b/gcc/testsuite/gcc.target/powerpc/vsx-extract-1.c index e1f0ca8e887..70ad3378d7f 100644 --- a/gcc/testsuite/gcc.target/powerpc/vsx-extract-1.c +++ b/gcc/testsuite/gcc.target/powerpc/vsx-extract-1.c @@ -1,16 +1,11 @@ /* { dg-do compile { target { powerpc*-*-* && lp64 } } } */ /* { dg-skip-if "" { powerpc*-*-darwin* } { "*" } { "" } } */ /* { dg-require-effective-target powerpc_vsx_ok } */ +/* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power7" } } */ /* { dg-options "-O3 -mcpu=power7" } */ /* { dg-final { scan-assembler "lfd" } } */ /* { dg-final { scan-assembler-not "lxvd2x" } } */ #include <altivec.h> -#if __LITTLE_ENDIAN__ -#define OFFSET 1 -#else -#define OFFSET 0 -#endif - -double get_value (vector double *p) { return vec_extract (*p, OFFSET); } +double get_value (vector double *p) { return vec_extract (*p, 0); } |