modernc.org/ccgo/v3@v3.16.14/lib/testdata/gcc-9.1.0/gcc/testsuite/gcc.c-torture/execute/pr70903.c (about)

     1  typedef unsigned char V8 __attribute__ ((vector_size (32)));
     2  typedef unsigned int V32 __attribute__ ((vector_size (32)));
     3  typedef unsigned long long V64 __attribute__ ((vector_size (32)));
     4  
     5  static V32 __attribute__ ((noinline, noclone))
     6  foo (V64 x)
     7  {
     8    V64 y = (V64)(V8){((V8)(V64){65535, x[0]})[1]};
     9    return (V32){y[0], 255};
    10  }
    11  
    12  int main ()
    13  {
    14    V32 x = foo ((V64){});
    15  //  __builtin_printf ("%08x %08x %08x %08x %08x %08x %08x %08x\n", x[0], x[1], x[2], x[3], x[4], x[5], x[6], x[7]);
    16    if (x[1] != 255)
    17      __builtin_abort();
    18    return 0;
    19  }
    20