This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] tweak gcc.target/mips/msa.c options
- From: Sandra Loosemore <sandra at codesourcery dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Cc: "Moore, Catherine" <Catherine_Moore at mentor dot com>
- Date: Thu, 2 Nov 2017 22:06:13 -0600
- Subject: [patch] tweak gcc.target/mips/msa.c options
- Authentication-results: sourceware.org; auth=none
The testcase gcc.target/mips/msa.c gives dozens of FAILs if it's tested
with a GCC configured to default to -fno-common, because of patterns like
/* { dg-final { scan-assembler-times "\t.comm\tv16i8_\\d+,16,16" 3 } } */
Seems like the simplest solution is to force -fcommon for this test. OK?
-Sandra
2017-11-02 Sandra Loosemore <sandra@codesourcery.com>
gcc/testsuite/
* gcc.target/mips/msa.c: Add -fcommon to dg-options.
Index: gcc/testsuite/gcc.target/mips/msa.c
===================================================================
--- gcc/testsuite/gcc.target/mips/msa.c (revision 480407)
+++ gcc/testsuite/gcc.target/mips/msa.c (working copy)
@@ -1,6 +1,6 @@
/* Test MIPS MSA ASE instructions */
/* { dg-do compile } */
-/* { dg-options "-mfp64 -mhard-float -mmsa -fexpensive-optimizations" } */
+/* { dg-options "-mfp64 -mhard-float -mmsa -fexpensive-optimizations -fcommon" } */
/* { dg-skip-if "madd and msub need combine" { *-*-* } { "-O0" } { "" } } */
/* { dg-final { scan-assembler-times "\t.comm\tv16i8_\\d+,16,16" 3 } } */