diff options
Diffstat (limited to 'libgomp/testsuite/libgomp.c-target')
8 files changed, 16 insertions, 2 deletions
diff --git a/libgomp/testsuite/libgomp.c-target/aarch64/firstprivate.c b/libgomp/testsuite/libgomp.c-target/aarch64/firstprivate.c index 930ca62..58674e2 100644 --- a/libgomp/testsuite/libgomp.c-target/aarch64/firstprivate.c +++ b/libgomp/testsuite/libgomp.c-target/aarch64/firstprivate.c @@ -1,6 +1,8 @@ /* { dg-do run { target aarch64_sve256_hw } } */ /* { dg-options "-msve-vector-bits=256 -fopenmp -O2" } */ +#pragma GCC target "+sve" + #include <arm_sve.h> #include <omp.h> diff --git a/libgomp/testsuite/libgomp.c-target/aarch64/lastprivate.c b/libgomp/testsuite/libgomp.c-target/aarch64/lastprivate.c index be5a618..2f93d7b 100644 --- a/libgomp/testsuite/libgomp.c-target/aarch64/lastprivate.c +++ b/libgomp/testsuite/libgomp.c-target/aarch64/lastprivate.c @@ -1,6 +1,8 @@ /* { dg-do run { target aarch64_sve256_hw } } */ /* { dg-options "-msve-vector-bits=256 -fopenmp -O2" } */ +#pragma GCC target "+sve" + #include <arm_sve.h> #include <omp.h> diff --git a/libgomp/testsuite/libgomp.c-target/aarch64/private.c b/libgomp/testsuite/libgomp.c-target/aarch64/private.c index 0ca74fe..fed5370 100644 --- a/libgomp/testsuite/libgomp.c-target/aarch64/private.c +++ b/libgomp/testsuite/libgomp.c-target/aarch64/private.c @@ -1,6 +1,8 @@ /* { dg-do run { target aarch64_sve256_hw } } */ /* { dg-options "-msve-vector-bits=256 -fopenmp -O2" } */ +#pragma GCC target "+sve" + #include <arm_sve.h> #include <omp.h> diff --git a/libgomp/testsuite/libgomp.c-target/aarch64/shared.c b/libgomp/testsuite/libgomp.c-target/aarch64/shared.c index dec41b8..340a668 100644 --- a/libgomp/testsuite/libgomp.c-target/aarch64/shared.c +++ b/libgomp/testsuite/libgomp.c-target/aarch64/shared.c @@ -1,6 +1,8 @@ /* { dg-do run { target aarch64_sve256_hw } } */ /* { dg-options "-msve-vector-bits=256 -fopenmp -O2" } */ +#pragma GCC target "+sve" + #include <arm_sve.h> #include <stdlib.h> #include <omp.h> diff --git a/libgomp/testsuite/libgomp.c-target/aarch64/simd-aligned.c b/libgomp/testsuite/libgomp.c-target/aarch64/simd-aligned.c index cc41139..14642c9 100644 --- a/libgomp/testsuite/libgomp.c-target/aarch64/simd-aligned.c +++ b/libgomp/testsuite/libgomp.c-target/aarch64/simd-aligned.c @@ -1,6 +1,8 @@ /* { dg-do run { target aarch64_sve256_hw } } */ /* { dg-options "-msve-vector-bits=256 -fopenmp -O2" } */ +#pragma GCC target "+sve" + #include <arm_sve.h> #include <stdint.h> diff --git a/libgomp/testsuite/libgomp.c-target/aarch64/simd-nontemporal.c b/libgomp/testsuite/libgomp.c-target/aarch64/simd-nontemporal.c index 3385427..6fe4616 100644 --- a/libgomp/testsuite/libgomp.c-target/aarch64/simd-nontemporal.c +++ b/libgomp/testsuite/libgomp.c-target/aarch64/simd-nontemporal.c @@ -1,6 +1,8 @@ /* { dg-do run { target aarch64_sve256_hw } } */ /* { dg-options "-msve-vector-bits=256 -fopenmp -O2" } */ +#pragma GCC target "+sve" + #include <arm_sve.h> #include <stdint.h> diff --git a/libgomp/testsuite/libgomp.c-target/aarch64/threadprivate.c b/libgomp/testsuite/libgomp.c-target/aarch64/threadprivate.c index 4a39312..aa7d2f9 100644 --- a/libgomp/testsuite/libgomp.c-target/aarch64/threadprivate.c +++ b/libgomp/testsuite/libgomp.c-target/aarch64/threadprivate.c @@ -1,6 +1,8 @@ /* { dg-do run { target aarch64_sve256_hw } } */ /* { dg-options "-msve-vector-bits=256 -fopenmp -O2" } */ +#pragma GCC target "+sve" + #include <arm_sve.h> #include <stdint.h> diff --git a/libgomp/testsuite/libgomp.c-target/aarch64/udr-sve.c b/libgomp/testsuite/libgomp.c-target/aarch64/udr-sve.c index c79f4a9..03d93cc 100644 --- a/libgomp/testsuite/libgomp.c-target/aarch64/udr-sve.c +++ b/libgomp/testsuite/libgomp.c-target/aarch64/udr-sve.c @@ -1,5 +1,5 @@ /* { dg-do run { target aarch64_sve256_hw } } */ -/* { dg-options "-msve-vector-bits=256 -fopenmp -O2" } */ +/* { dg-options "-march=armv8-a+sve -msve-vector-bits=256 -fopenmp -O2" } */ #include <arm_sve.h> @@ -38,7 +38,7 @@ for_reduction () #pragma omp parallel for reduction (+:va) for (j = 0; j < 8; j++) - va = svld1_s32 (svptrue_b32 (), a); + va += svld1_s32 (svptrue_b32 (), a); res = svaddv_s32 (svptrue_b32 (), va); |