aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/pr78938.c
blob: 095e674adf5312208b57d618f3b7d69e03214792 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* PR tree-optimization/78938 */
/* { dg-do compile } */
/* { dg-additional-options "-mavx512bw" { target i?86-*-* x86_64-*-* } } */

short int v;

int
foo (char x, int *b)
{
  int a = 1;
  for (; x < 1; x++)
    {
      int c = *b != v;
      int d = x != 0;
      a = c == d ? 2 : 0;
    }
  return a;
}