(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
aarch64/
sve/
acle/
general/
pr94683.c
       1  /* { dg-options "-O2 -msve-vector-bits=256" } */
       2  /* { dg-final { check-function-bodies "**" "" } } */
       3  
       4  #include <arm_sve.h>
       5  
       6  typedef float v8sf __attribute__((vector_size(32)));
       7  
       8  #ifdef __cplusplus
       9  extern "C" {
      10  #endif
      11  
      12  /*
      13  ** test:
      14  **	fadd	z0\.s, p0/m, z0\.s, #1.0
      15  **	trn1	z0\.s, z0\.s, z0\.s
      16  **	fdiv	z0\.s, p0/m, z0\.s, z1\.s
      17  **	ret
      18  */
      19  svfloat32_t
      20  test (svbool_t pg, svfloat32_t x, svfloat32_t y)
      21  {
      22    v8sf a = svadd_x (pg, x, 1);
      23    v8sf b = { a[0], a[0], a[2], a[2], a[4], a[4], a[6], a[6] };
      24    return svdiv_x (pg, b, y);
      25  }
      26  
      27  #ifdef __cplusplus
      28  }
      29  #endif