aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/pr113431.c
blob: 2858a769d73c96450b8f869eddc5f984195904a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-additional-options "-O3 -fdump-tree-slp1-details" } */

#include "tree-vect.h"

int a[2][9];
int b;
int main()
{
  check_vect ();
  for (b = 0; b < 2; b++)
    for (long e = 8; e > 0; e--)
      a[b][e] = a[0][1] == 0;
  if (a[1][1] != 0)
    __builtin_abort ();
  return 0;
}

/* { dg-final { scan-tree-dump-times "optimized: basic block part vectorized" 2 "slp1" { target { vect_int && vect_hw_misalign } } } } */