(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
aarch64/
target_attr_2.c
       1  /* { dg-do assemble } */
       2  /* { dg-options "-O2 -mcpu=cortex-a57 -march=armv8-a -ftree-vectorize -fdump-tree-vect-all" } */
       3  
       4  /* The various ways to turn off simd availability should
       5     turn off vectorization.  */
       6  
       7  __attribute__ ((target ("+nosimd")))
       8  int
       9  baz (int *a)
      10  {
      11    for (int i = 0; i < 1024; i++)
      12      a[i] += 5;
      13  }
      14  
      15  __attribute__ ((target ("arch=armv8-a+nosimd")))
      16  int
      17  baz2 (int *a)
      18  {
      19    for (int i = 0; i < 1024; i++)
      20      a[i] += 5;
      21  }
      22  
      23  __attribute__ ((target ("cpu=cortex-a53+nosimd")))
      24  int
      25  baz3 (int *a)
      26  {
      27    for (int i = 0; i < 1024; i++)
      28      a[i] += 5;
      29  }
      30  
      31  __attribute__ ((target ("general-regs-only")))
      32  int
      33  baz4 (int *a)
      34  {
      35    for (int i = 0; i < 1024; i++)
      36      a[i] += 5;
      37  }
      38  
      39  /* { dg-final { scan-tree-dump-not "vectorized 1 loops" "vect" } } */