2018-03-15 Steven G. Kargl <kargl@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gcc.target / s390 / target-attribute / tattr-3.c
blob1af2274120de1d748e80f976dc09e0bea5a431df
1 /* Functional tests for the "target" attribute and pragma. */
3 /* { dg-do compile { target { lp64 } } } */
4 /* { dg-require-effective-target target_attribute } */
5 /* { dg-options "-O3 -march=z13 -mzarch -mzvector" } */
7 #include <vecintrin.h>
9 __attribute__ ((target("arch=z13")))
10 void vx1(void)
12 vec_load_bndry ((const signed char *)0, 64);
13 __builtin_s390_vll ((unsigned int)0, (const void *)8);
16 __attribute__ ((target("arch=z10")))
17 void vx0(void)
19 __builtin_s390_vll ((unsigned int)0, (const void *)8); /* { dg-error "requires -mvx" } */
22 void vxd(void)
24 vec_load_bndry ((const signed char *)0, 64);
25 __builtin_s390_vll ((unsigned int)0, (const void *)8);