summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr82618.c
blob: f6e3589c80815cf5f91323e94e25e09ce5ee6164 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* PR target/82618 */
/* { dg-do compile } */
/* { dg-options "-O2" } */

#ifdef __SIZEOF_INT128__
typedef unsigned __int128 U;
typedef unsigned long long H;
#else
typedef unsigned long long U;
typedef unsigned int H;
#endif

H f0 (U x, U y)
{
  return (x - y) >> (__CHAR_BIT__ * sizeof (H));
}

/* { dg-final { scan-assembler {\mcmp} } } */