PR tree-optimization/84740
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr71259.c
blob587a8e3c8f378f3c57f8a9a2e9fa5aee3a968860
1 /* PR tree-optimization/71259 */
2 /* { dg-additional-options "-O3" } */
3 /* { dg-additional-options "-mavx" { target avx_runtime } } */
5 #include "tree-vect.h"
7 long a, b[1][44][2];
8 long long c[44][17][2];
10 int
11 main ()
13 int i, j, k;
14 check_vect ();
15 asm volatile ("" : : : "memory");
16 for (i = 0; i < 44; i++)
17 for (j = 0; j < 17; j++)
18 for (k = 0; k < 2; k++)
19 c[i][j][k] = (30995740 >= *(k + *(j + *b)) != (a != 8)) - 5105075050047261684;
20 asm volatile ("" : : : "memory");
21 for (i = 0; i < 44; i++)
22 for (j = 0; j < 17; j++)
23 for (k = 0; k < 2; k++)
24 if (c[i][j][k] != -5105075050047261684)
25 __builtin_abort ();
26 return 0;