Debian Codegraph @

gcc/testsuite/gcc.dg/pr114211.c

raw
1 /* PR rtl-optimization/114211 */
2 /* { dg-do run { target int128 } } */
3 /* { dg-options "-O -fno-tree-coalesce-vars -Wno-psabi" } */
4
5 typedef unsigned __int128 V __attribute__((__vector_size__ (16)));
6 unsigned int u;
7 V v;
8
9 V
10 foo (unsigned __int128 h)
11 {
12 h = h << 64 | h >> 64;
13 h *= ~u;
14 return h + v;
15 }
16
17 int
18 main ()
19 {
20 V x = foo (1);
21 if (x[0] != (unsigned __int128) 0xffffffff << 64)
22 __builtin_abort ();
23 }