(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
aarch64/
pr96402.c
       1  /* PR target/96402 */
       2  /* { dg-do run { target int128 } } */
       3  /* { dg-options "-moutline-atomics" } */
       4  
       5  int
       6  main ()
       7  {
       8    __int128 a = 0;
       9    __sync_val_compare_and_swap (&a, (__int128) 0, (__int128) 1);
      10    if (a != 1)
      11      __builtin_abort ();
      12    __sync_val_compare_and_swap (&a, (__int128) 1, (((__int128) 0xdeadbeeffeedbac1ULL) << 64) | 0xabadcafe00c0ffeeULL);
      13    if (a != ((((__int128) 0xdeadbeeffeedbac1ULL) << 64) | 0xabadcafe00c0ffeeULL))
      14      __builtin_abort ();
      15    return 0;
      16  }