1 /* { dg-do compile } */
2 /* { dg-require-effective-target int128 } */
3 /* { dg-options "-O2 -g" } */
4
5 typedef unsigned char u8;
6 typedef unsigned int u32;
7 typedef unsigned __int128 u128;
8
9 u32 b, c;
10
11 static inline
12 u128 bar (u8 d, u128 e)
13 {
14 __builtin_memset (11 + (char *) &e, b, 1);
15 d <<= e & 7;
16 d = d | d > 0;
17 return d + e;
18 }
19
20 void
21 foo (void)
22 {
23 c = bar (~0, 5);
24 }