view gcc/testsuite/gcc.dg/pr91860-4.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
line wrap: on
line source

/* { 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);
}