aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr96558.c
blob: 2f5739e9e6eac0690e6e571135d976340702b175 (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
25
26
27
28
29
30
31
32
/* PR target/96558 */
/* { dg-do compile { target int128 } } */
/* { dg-options "-O2 -fno-expensive-optimizations -fno-gcse" } */

int ky;
long int h1;
__int128 f1;

int
sd (void);

int __attribute__ ((simd))
i8 (void)
{
  __int128 vh;

  if (sd () == 0)
    h1 = 0;

  do
    {
      long int lf = (long int) f1 ? h1 : 0;

      ky += lf;
      vh = lf | f1;
      f1 = 1;
    }
  while (vh < (f1 ^ 2));

  return 0;
}