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  <san...@codesourcery.com>
            Catherine Moore  <c...@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.

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()
 {

Reply via email to