view gcc/testsuite/gcc.dg/vect/pr78938.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* 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;
}