Debian Codegraph @

gcc/testsuite/gcc.target/powerpc/vsu/vec-xst-len-13.c

raw
1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-options "-mdejagnu-cpu=power9 -mvsx" } */
3 /* { dg-require-effective-target ilp32 } */
4 /* { dg-require-effective-target powerpc_vsx } */
5
6 #include <stddef.h>
7 #include <altivec.h>
8
9 /* This test only runs on 32-bit configurations, where a compiler
10 error should be issued because this built-in function is not
11 available on 32-bit configurations. */
12 void
13 store_data (vector double *datap, double *address, size_t length)
14 {
15 vector double data = *datap;
16
17 __builtin_vec_stxvl (data, address, length); /* { dg-error "'__builtin_altivec_stxvl' requires" } */
18 }