aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr91860-4.c
blob: 36f2bd55c6400f4102c20b4c06420cb66b7573e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* { dg-do compile } */
/* { dg-require-effective-target int128 } */
/* { dg-options "-O2 -g" } */

typedef unsigned char u8;
typedef unsigned int u32;
typedef unsigned __int128 u128;

u32 b, c;

static inline
u128 bar (u8 d, u128 e)
{
  __builtin_memset (11 + (char *) &e, b, 1);
  d <<= e & 7;
  d = d | d > 0;
  return d + e;
}

void
foo (void)
{
  c = bar (~0, 5);
}