| 1 |
/* PR 110485 */ |
| 2 |
/* { dg-do compile } */ |
| 3 |
/* { dg-additional-options "-Ofast -fdump-tree-vect-details" } */ |
| 4 |
/* { dg-additional-options "-march=znver4 --param=vect-partial-vector-usage=1" { target x86_64-*-* } } */ |
| 5 |
#pragma omp declare simd notinbranch uniform(p) |
| 6 |
extern double __attribute__ ((const)) bar (double a, double p); |
| 7 |
|
| 8 |
double a[1024]; |
| 9 |
double b[1024]; |
| 10 |
|
| 11 |
void foo (int n) |
| 12 |
{ |
| 13 |
#pragma omp simd |
| 14 |
for (int i = 0; i < n; ++i) |
| 15 |
a[i] = bar (b[i], 71.2); |
| 16 |
} |
| 17 |
|
| 18 |
/* { dg-final { scan-tree-dump-not "MASK_LOAD" "vect" } } */ |
| 19 |
/* { dg-final { scan-tree-dump "can't use a fully-masked loop because a non-masked simd clone was selected." "vect" { target x86_64-*-* } } } */ |