[gcc(refs/vendors/ARM/heads/arm-perf-staging)] Require powerpc_vsx_ok in gcc.target/powerpc/pr71763.c
Tamar Christina
tnfchris@gcc.gnu.org
Fri Jul 17 15:13:41 GMT 2020
https://gcc.gnu.org/g:b761035fd33cef92202d673d24b68e48c8f7964f
commit b761035fd33cef92202d673d24b68e48c8f7964f
Author: Douglas Rupp <rupp@adacore.com>
Date: Mon May 18 11:43:48 2020 -0700
Require powerpc_vsx_ok in gcc.target/powerpc/pr71763.c
We're getting an error when running this test on PowerPC VxWorks 7,
due to an unexpected warning:
| Excess errors:
| cc1: warning: '-mvsx' and '-mno-altivec' are incompatible
The warning comes from a combination of factors:
- The test itself uses -mvsx explicitly via the following directive:
// { dg-options "-O1 -mvsx" }
- Our toolchain was configured so as to make -mno-altivec
the default;
- These two options are mutually exclusive.
This commit adds a powerpc_vsx_ok dg-require-effective-target directive
to that test, and thus making it UNSUPPORTED instead.
Tested on PowerPC VxWorks 7. Also tested on PowerPC ELF as well,
a platform where we do not make -mno-altivec the default, to verify
that the test continues to run as usual in that case.
gcc/testsuite/
* gcc.target/powerpc/pr71763.c: Require powerpc_vsx_ok.
(cherry picked from commit c917584aa9ec32934acf0082ed383b04f49fd174)
Diff:
---
gcc/testsuite/ChangeLog | 4 ++++
gcc/testsuite/gcc.target/powerpc/pr71763.c | 1 +
2 files changed, 5 insertions(+)
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index e11dc50612f..7589de87b69 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2020-05-18 Doug Rupp <rupp@adacore.com>
+
+ * gcc.target/powerpc/pr71763.c: Require powerpc_vsx_ok.
+
2020-05-17 Iain Buclaw <ibuclaw@gdcproject.org>
Backport from mainline
diff --git a/gcc/testsuite/gcc.target/powerpc/pr71763.c b/gcc/testsuite/gcc.target/powerpc/pr71763.c
index b36ddfa26b0..b8888394393 100644
--- a/gcc/testsuite/gcc.target/powerpc/pr71763.c
+++ b/gcc/testsuite/gcc.target/powerpc/pr71763.c
@@ -1,5 +1,6 @@
// PR target/71763
// { dg-do compile }
+// { dg-require-effective-target powerpc_vsx_ok }
// { dg-options "-O1 -mvsx" }
int a, b;
More information about the Gcc-cvs
mailing list