| 1 |
/* { dg-do compile { target x86_64-*-* } } */ |
| 2 |
/* { dg-additional-options "-foffload=disable" } */ |
| 3 |
|
| 4 |
void f01 (void); |
| 5 |
#pragma omp declare variant (f01) \ |
| 6 |
match (device={kind (score(5) : host)}) |
| 7 |
/* { dg-error ".score. cannot be specified in traits in the .device. trait-selector-set" "" { target *-*-*} .-1 } */ |
| 8 |
void f02 (void); |
| 9 |
void f03 (void); |
| 10 |
#pragma omp declare variant (f03) \ |
| 11 |
match (device={kind (host), arch (score(6) : x86_64), isa (avx512f)}) |
| 12 |
/* { dg-error ".score. cannot be specified in traits in the .device. trait-selector-set" "" { target *-*-*} .-1 } */ |
| 13 |
void f04 (void); |
| 14 |
void f05 (void); |
| 15 |
#pragma omp declare variant (f05) \ |
| 16 |
match (device={kind (host), arch (score(6) : x86_64), \ |
| 17 |
isa (score(7): avx512f)}) |
| 18 |
/* { dg-error ".score. cannot be specified in traits in the .device. trait-selector-set" "" { target *-*-*} .-2 } */ |
| 19 |
/* { dg-error ".score. cannot be specified in traits in the .device. trait-selector-set" "" { target *-*-*} .-2 } */ |
| 20 |
void f06 (void); |
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|