[gcc/devel/omp/gcc-9] Darwin, PPC, testsuite, backport fix for bmi2-bzhi64-1a.c
Tobias Burnus
burnus@gcc.gnu.org
Thu Mar 5 14:20:00 GMT 2020
https://gcc.gnu.org/g:38a52f746465440a1f2d58e64c315672d83a5809
commit 38a52f746465440a1f2d58e64c315672d83a5809
Author: Iain Sandoe <iain@sandoe.co.uk>
Date: Sun Aug 4 13:17:15 2019 +0000
Darwin, PPC, testsuite, backport fix for bmi2-bzhi64-1a.c
This test is failing with older cpus because the included header needs both
altivec and vsx to be enabled to succeed in compiling. Without this (if these
are not defaults for the cpu) there are errors like:
In file included from ... x86intrin.h:41,
from ... bmi2-bzhi64-1a.c:6:
... xmmintrin.h: In function '_mm_loadu_ps':
... xmmintrin.h:122:11:
error: incompatible types when returning type 'int' but '__m128' {aka '__vector(4) float'} was expected
<snip>
... xmmintrin.h: In function '_mm_cvtps_pi32':
... xmmintrin.h:996:3:
error: use of 'long long' in AltiVec types is invalid without '-mvsx'
<snip>
Fixed by adding -maltivec -mvsx to the options
2019-08-04 Iain Sandoe <iain@sandoe.co.uk>
Backport from mainline.
2019-07-27 Iain Sandoe <iain@sandoe.co.uk>
* gcc.target/powerpc/bmi2-bzhi64-1a.c: Add options to enable altivec
and vsx.
From-SVN: r274093
Diff:
---
gcc/testsuite/ChangeLog | 8 ++++++++
gcc/testsuite/gcc.target/powerpc/bmi2-bzhi64-1a.c | 2 +-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index bc91a79..542abb2 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,6 +1,14 @@
2019-08-04 Iain Sandoe <iain@sandoe.co.uk>
Backport from mainline.
+ 2019-07-27 Iain Sandoe <iain@sandoe.co.uk>
+
+ * gcc.target/powerpc/bmi2-bzhi64-1a.c: Add options to enable altivec
+ and vsx.
+
+2019-08-04 Iain Sandoe <iain@sandoe.co.uk>
+
+ Backport from mainline.
2019-07-25 Iain Sandoe <iain@sandoe.co.uk>
PR gcov-profile/91087
diff --git a/gcc/testsuite/gcc.target/powerpc/bmi2-bzhi64-1a.c b/gcc/testsuite/gcc.target/powerpc/bmi2-bzhi64-1a.c
index 149cbc5..89bee61 100644
--- a/gcc/testsuite/gcc.target/powerpc/bmi2-bzhi64-1a.c
+++ b/gcc/testsuite/gcc.target/powerpc/bmi2-bzhi64-1a.c
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-O3" } */
+/* { dg-options "-O3 -maltivec -mvsx" } */
/* { dg-require-effective-target lp64 } */
#define NO_WARN_X86_INTRINSICS 1
More information about the Gcc-cvs
mailing list