(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
s390/
target-attribute/
tattr-3.c
       1  /* Functional tests for the "target" attribute and pragma.  */
       2  
       3  /* { dg-do compile { target { lp64 } } } */
       4  /* { dg-require-effective-target target_attribute } */
       5  /* { dg-options "-O3 -march=z13 -mzarch -mzvector" } */
       6  
       7  #include <vecintrin.h>
       8  
       9  __attribute__ ((target("arch=z13")))
      10  void vx1(void)
      11  {
      12    vec_load_bndry ((const signed char *)0, 64);
      13    __builtin_s390_vll ((unsigned int)0, (const void *)8);
      14  }
      15  
      16  __attribute__ ((target("arch=z10")))
      17  void vx0(void)
      18  {
      19    __builtin_s390_vll ((unsigned int)0, (const void *)8); /* { dg-error "requires '-mvx'" } */
      20  }
      21  
      22  void vxd(void)
      23  {
      24    vec_load_bndry ((const signed char *)0, 64);
      25    __builtin_s390_vll ((unsigned int)0, (const void *)8);
      26  }