summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr68835-1.c
blob: 47aebe3c1c6103dc7e20de001c041547cb178d83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* PR tree-optimization/68835 */
/* { dg-do compile { target int128 } } */
/* { dg-options "-O2" } */

unsigned __int128
foo (unsigned long a, unsigned long b)
{
  unsigned __int128 x = (unsigned __int128) a * b;
  struct { unsigned __int128 a : 96; } w;
  w.a = x;
  return w.a;
}