diff mbox

[MIPS] fix clear cache test cases

Message ID 501C3F6C.2070808@codesourcery.com
State New
Headers show

Commit Message

Sandra Loosemore Aug. 3, 2012, 9:15 p.m. UTC
Some MIPS configurations #define CACHE_FLUSH_FUNC to something other 
than "_flush_cache",  This fixes the two test cases that currently have 
that name wired in to know about the netbsd and sdemtk names too.  OK 
for mainline?

-Sandra


2012-08-03  Sandra Loosemore  <sandra@codesourcery.com>
	    Catherine Moore  <clm@codesourcery.com>

	gcc/testsuite/
	* gcc.target/mips/clear-cache-1.c: Test for alternate cache
	flush function names too.
	* gcc.target/mips/clear-cache-1.c: Likewise.

Comments

Richard Sandiford Aug. 4, 2012, 2:10 p.m. UTC | #1
Sandra Loosemore <sandra@codesourcery.com> writes:
> 2012-08-03  Sandra Loosemore  <sandra@codesourcery.com>
> 	    Catherine Moore  <clm@codesourcery.com>
>
> 	gcc/testsuite/
> 	* gcc.target/mips/clear-cache-1.c: Test for alternate cache
> 	flush function names too.
> 	* gcc.target/mips/clear-cache-1.c: Likewise.

OK, thanks.

Richard
diff mbox

Patch

Index: gcc/testsuite/gcc.target/mips/clear-cache-1.c
===================================================================
--- gcc/testsuite/gcc.target/mips/clear-cache-1.c	(revision 190052)
+++ gcc/testsuite/gcc.target/mips/clear-cache-1.c	(working copy)
@@ -2,7 +2,7 @@ 
 /* { dg-options "-O2 -msynci isa_rev>=2" } */
 /* { dg-final { scan-assembler "synci" } } */
 /* { dg-final { scan-assembler "jr.hb" } } */
-/* { dg-final { scan-assembler-not "_flush_cache" } } */
+/* { dg-final { scan-assembler-not "_flush_cache|mips_sync_icache|_cacheflush" } } */
 
 NOMIPS16 void f()
 {
Index: gcc/testsuite/gcc.target/mips/clear-cache-2.c
===================================================================
--- gcc/testsuite/gcc.target/mips/clear-cache-2.c	(revision 190052)
+++ gcc/testsuite/gcc.target/mips/clear-cache-2.c	(working copy)
@@ -2,7 +2,7 @@ 
 /* { dg-options "-O2 -mips32" } */
 /* { dg-final { scan-assembler-not "synci" } } */
 /* { dg-final { scan-assembler-not "jr.hb" } } */
-/* { dg-final { scan-assembler "_flush_cache" } } */
+/* { dg-final { scan-assembler "_flush_cache|mips_sync_icache|_cacheflush" } } */
 
 void f()
 {