aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/pr109502.c
blob: fb67d909bbf6e8eb38f3493cfab753dabd52e735 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-additional-options "-O" } */

unsigned g;

unsigned
foo (void)
{
  unsigned a = !g;
  a += !(a % 6);
  return a;
}

int
main ()
{
  unsigned x = foo ();
  if (x != 1)
    __builtin_abort ();
  return 0;
}