2018-03-08 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / vsx-extract-1.c
blob2ca426133ae893babafe43004b01eab42db403d4
1 /* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
2 /* { dg-skip-if "" { powerpc*-*-darwin* } } */
3 /* { dg-require-effective-target powerpc_vsx_ok } */
4 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power7" } } */
5 /* { dg-options "-O3 -mcpu=power7" } */
6 /* { dg-final { scan-assembler "lfd" } } */
7 /* { dg-final { scan-assembler-not "lxvd2x" } } */
9 #include <altivec.h>
11 double get_value (vector double *p) { return vec_extract (*p, 0); }