This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] tweak gcc.target/mips/msa.c options


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 } } */

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]