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" } */
9 __attribute__ ((target("arch=z13")))
12 vec_load_bndry ((const signed char *)0, 64);
13 __builtin_s390_vll ((unsigned int)0, (const void *)8);
16 __attribute__ ((target("arch=z10")))
19 __builtin_s390_vll ((unsigned int)0, (const void *)8); /* { dg-error "requires -mvx" } */
24 vec_load_bndry ((const signed char *)0, 64);
25 __builtin_s390_vll ((unsigned int)0, (const void *)8);