view gcc/testsuite/gcc.dg/vect/pr63189.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* PR tree-optimization/63189 */

#include "tree-vect.h"

short int d[16] = { 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 };

__attribute__((noinline, noclone)) void
foo (void)
{
  int j, s = 0;
  for (j = 0; j < 8; j++)
    s += d[j] * j;
  if (s != 7)
    abort ();
}

int
main ()
{
  check_vect ();
  foo ();
  return 0;
}