(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
torture/
pr100672.c
       1  /* { dg-do run } */
       2  /* { dg-additional-options "-w -Wno-psabi" } */
       3  
       4  typedef long long __attribute__((__vector_size__ (4 * sizeof (long long)))) V;
       5  
       6  V
       7  foo (V v)
       8  {
       9    return -(v >> 1);
      10  }
      11  
      12  int
      13  main (void)
      14  {
      15    V v = foo ((V) { -2, -4, -6, -8 });
      16    if (v[0] != 1 || v[1] != 2 || v[2] != 3 || v[3] != 4)
      17      __builtin_abort ();
      18    return 0;
      19  }