(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
arm/
pr97528.c
       1  /* PR target/97528 */
       2  /* { dg-do compile } */
       3  /* { dg-require-effective-target arm_neon_ok } */
       4  /* { dg-options "-O1" }  */
       5  /* { dg-add-options arm_neon } */
       6  
       7  #include <arm_neon.h>
       8  
       9  typedef __simd64_int16_t T;
      10  typedef __simd64_uint16_t U;
      11  unsigned short c;
      12  int d;
      13  U e;
      14  
      15  void
      16  foo (void)
      17  {
      18    unsigned short *dst = &c;
      19    int g = d, b = 4;
      20    U dc = e;
      21    for (int h = 0; h < b; h++)
      22      {
      23        unsigned short *i = dst;
      24        U j = dc;
      25        vst1_s16 ((int16_t *) i, (T) j);
      26        dst += g;
      27      }
      28  }