(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
powerpc/
vec-cg.c
       1  /* Test code generation of vector built-ins.  We don't have this for
       2     most of ours today.  As new built-ins are added, please add to this
       3     test case.  Update as necessary to add VSX, P8-vector, P9-vector,
       4     etc. */
       5  
       6  /* { dg-do compile { target powerpc*-*-* } } */
       7  /* { dg-require-effective-target powerpc_altivec_ok } */
       8  /* { dg-options "-maltivec -O0" } */
       9  
      10  #include <altivec.h>
      11  
      12  static vector signed int i, *pi;
      13  static int int1;
      14  
      15  void
      16  b()
      17  {
      18    i = __builtin_altivec_lvxl (int1, pi);
      19    i = vec_lvxl (int1, pi);
      20  }
      21  
      22  /* { dg-final { scan-assembler-times "lvxl" 2 } } */