(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.c-torture/
execute/
pr109040.c
       1  /* PR target/109040 */
       2  
       3  typedef unsigned short __attribute__((__vector_size__ (32))) V;
       4  
       5  unsigned short a, b, c, d;
       6  
       7  void
       8  foo (V m, unsigned short *ret)
       9  {
      10    V v = 6 > ((V) { 2124, 8 } & m);
      11    unsigned short uc = v[0] + a + b + c + d;
      12    *ret = uc;
      13  }
      14  
      15  int
      16  main ()
      17  {
      18    unsigned short x;
      19    foo ((V) { 0, 15 }, &x);
      20    if (x != (unsigned short) ~0)
      21      __builtin_abort ();
      22    return 0;
      23  }