1 /* { dg-do compile { target { powerpc64le-*-* } } } */
2 /* { dg-require-effective-target powerpc_p8vector_ok } */
3 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power8" } } */
4 /* { dg-options "-mcpu=power8 -O3 " } */
5 /* { dg-final { scan-assembler-not "xxpermdi" } } */
6 /* { dg-final { scan-assembler-not "xxswapd" } } */
10 extern void abort (void);
12 const vector
float y
= { 0.0f
, 0.1f
, 0.2f
, 0.3f
};
21 main (int argc
, char *argv
[])
23 vector
float fetched_value
= foo ();
24 if (fetched_value
[0] != 0.0f
|| fetched_value
[3] != 0.3)