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 -mno-vx -mno-zvector" } */
9 #pragma GCC target("no-zvector")
10 __attribute__ ((target("vx")))
14 #error __VEC__ is defined
16 vec_load_bndry ((const signed char *)0, 64);
17 __builtin_s390_vll ((unsigned int)0, (const void *)8);
19 #pragma GCC reset_options
21 __attribute__ ((target("no-vx")))
25 #error __VEC__ is defined
27 __builtin_s390_vll ((unsigned int)0, (const void *)8); /* { dg-error "requires -mvx" } */
33 #error __VEC__ is defined
35 __builtin_s390_vll ((unsigned int)0, (const void *)8); /* { dg-error "requires -mvx" } */