libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / pr114211.c
blob691dae5dbe858f971d2406a7e6664a530493e050
1 /* PR rtl-optimization/114211 */
2 /* { dg-do run { target int128 } } */
3 /* { dg-options "-O -fno-tree-coalesce-vars -Wno-psabi" } */
5 typedef unsigned __int128 V __attribute__((__vector_size__ (16)));
6 unsigned int u;
7 V v;
10 foo (unsigned __int128 h)
12 h = h << 64 | h >> 64;
13 h *= ~u;
14 return h + v;
17 int
18 main ()
20 V x = foo (1);
21 if (x[0] != (unsigned __int128) 0xffffffff << 64)
22 __builtin_abort ();