view gcc/testsuite/gcc.dg/vect/pr78938.c @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +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;
}