gcc/testsuite/g++.dg/vect/pr95401.cc
raw| 1 | // { dg-additional-options "-mavx2 -O3" { target avx2_runtime } } |
| 2 | // { dg-additional-sources pr95401a.cc linkonly } |
| 3 | |
| 4 | extern int var_9; |
| 5 | extern unsigned var_14; |
| 6 | extern int arr_16[]; |
| 7 | #include <algorithm> |
| 8 | void test() { |
| 9 | for (short a = 0; a < (short)var_9; a += 12140) |
| 10 | for (short b = 0; b < 8; b++) |
| 11 | if (std::max(var_14, 1U)) |
| 12 | arr_16[a + b] = 0; |
| 13 | } |