cfgexpand: Expand comment on when non-var clobbers can show up
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr92324-3.c
blobdb5c399d4ff3596950ec8319050f577fa269b220
1 #include "tree-vect.h"
3 int a[1024];
4 unsigned b[1024];
6 int __attribute__((noipa))
7 foo (int n)
9 int res = 0;
10 for (int i = 0; i < n; ++i)
12 res = res > a[i] ? res : a[i];
13 res = res > b[i] ? res : b[i];
15 return res;
18 int main ()
20 check_vect ();
21 b[3] = (unsigned)__INT_MAX__ + 1;
22 if (foo (4) != -__INT_MAX__ - 1)
23 __builtin_abort ();
24 return 0;
27 /* { dg-final { scan-tree-dump-not "vectorized \[1-9\] loops" "vect" } } */