(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
powerpc/
pr70010.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O2 -finline-functions -Wno-psabi -mvsx" } */
       3  /* { dg-final { scan-assembler {\mbl \.?vadd_no_vsx\M} } } */
       4  
       5  typedef int vec_t __attribute__((vector_size(16)));
       6  
       7  static vec_t
       8  __attribute__((__target__("no-vsx")))
       9  vadd_no_vsx (vec_t a, vec_t b)
      10  {
      11    return a + b;
      12  }
      13  
      14  vec_t
      15  __attribute__((__target__("vsx")))
      16  call_vadd_no_vsx (vec_t x, vec_t y, vec_t z)
      17  {
      18    return vadd_no_vsx (x, y) - z;
      19  }