(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr69896.c
       1  /* PR rtl-optimization/69896 */
       2  /* { dg-do run { target int128 } } */
       3  /* { dg-options "-w -O -fcaller-saves -fno-dse -frename-registers -fno-tree-ter" } */
       4  /* { dg-additional-options "-mno-sse" { target x86_64-*-* i?86-*-* } } */
       5  
       6  typedef unsigned short A;
       7  typedef unsigned short B __attribute__ ((vector_size (32)));
       8  typedef unsigned int C;
       9  typedef unsigned int D __attribute__ ((vector_size (32)));
      10  typedef unsigned long long E;
      11  typedef unsigned long long F __attribute__ ((vector_size (32)));
      12  typedef unsigned __int128 G;
      13  typedef unsigned __int128 H __attribute__ ((vector_size (32)));
      14  
      15  G __attribute__ ((noinline, noclone))
      16  foo (A a, C b, E c, G d, A e, C f, E g, G h, B i, D j, F k, H l, B m, D n, F o, H p)
      17  {
      18    j /= (D) { -c, -c, ~h, 1, ~l[0], -m[0], p[0], 1} | 1;
      19    l %= (H) o | 1;
      20    l[1] = (l[1] << (e & 127)) | (l[1] >> (e & 127));
      21    return j[6] + l[0] + l[1] + n[7] + o[0] + o[2] + o[3] + p[0] + p[1];
      22  }
      23  
      24  int
      25  main ()
      26  {
      27    if (__CHAR_BIT__ != 8 || sizeof (A) != 2 || sizeof (C) != 4 || sizeof (E) != 8 || sizeof (G) != 16)
      28      return 0;
      29    G x = foo (0, 1, 2, 3, 4, 5, 6, 7, (B) {}, (D) {}, (F) {}, (H) {}, (B) {}, (D) {}, (F) {}, (H) { 0xffffffffffffffffULL, 0x74a3e4aULL });
      30    if ((E) x != 0x00000000074a3e49ULL || (E) (x >> 64) != 1)
      31      __builtin_abort ();
      32    return 0;
      33  }