(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
i386/
pr87657.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O2 -ftree-slp-vectorize -fno-vect-cost-model -mno-sse" } */
       3  
       4  int x;
       5  
       6  void foo (short a, short b)
       7  {
       8    ((short *)&x)[0] = a;
       9    ((short *)&x)[1] = b;
      10  }
      11  
      12  #if __SIZEOF_LONG__ == 8
      13  long y;
      14  
      15  void bar (short a, short b)
      16  {
      17    ((short *)&y)[0] = a;
      18    ((short *)&y)[1] = b;
      19    ((short *)&y)[2] = a;
      20    ((short *)&y)[3] = b;
      21  }
      22  #endif