Committed.

There's no reason anyone would want to use the "patchable function"
feature for MMIX and also no reason to exclude those tests.  For MMIX,
the NOP equivalent is SWYM ("swymming" is a healthy exercise).
Text-wise, making the tests pass by adjusting the regexp, is shorter,
and it seems unlikely to both appear as a mnemonic for other targets
*and* being emitted in uppercase.

gcc/testsuite:

        * c-c++-common/patchable_function_entry-decl.c,
        c-c++-common/patchable_function_entry-default.c,
        c-c++-common/patchable_function_entry-definition.c: Adjust for mmix.

diff --git a/gcc/testsuite/c-c++-common/patchable_function_entry-decl.c 
b/gcc/testsuite/c-c++-common/patchable_function_entry-decl.c
index 4f707b3..3ce7a5b 100644
--- a/gcc/testsuite/c-c++-common/patchable_function_entry-decl.c
+++ b/gcc/testsuite/c-c++-common/patchable_function_entry-decl.c
@@ -1,7 +1,7 @@
 /* { dg-do compile { target { ! { nvptx*-*-* visium-*-* } } } } */
 /* { dg-options "-O2 -fpatchable-function-entry=3,1" } */
 /* { dg-additional-options "-fno-pie" { target sparc*-*-* } } */
-/* { dg-final { scan-assembler-times "nop|NOP" 2 { target { ! { alpha*-*-* } } 
} } } */
+/* { dg-final { scan-assembler-times "nop|NOP|SWYM" 2 { target { ! { 
alpha*-*-* } } } } } */
 /* { dg-final { scan-assembler-times "bis" 2 { target alpha*-*-* } } } */

 extern int a;
diff --git a/gcc/testsuite/c-c++-common/patchable_function_entry-default.c 
b/gcc/testsuite/c-c++-common/patchable_function_entry-default.c
index 97d8a81..7036f7b 100644
--- a/gcc/testsuite/c-c++-common/patchable_function_entry-default.c
+++ b/gcc/testsuite/c-c++-common/patchable_function_entry-default.c
@@ -1,7 +1,7 @@
 /* { dg-do compile { target { ! { nvptx*-*-* visium-*-* } } } } */
 /* { dg-options "-O2 -fpatchable-function-entry=3,1" } */
 /* { dg-additional-options "-fno-pie" { target sparc*-*-* } } */
-/* { dg-final { scan-assembler-times "nop|NOP" 3 { target { ! { alpha*-*-* } } 
} } } */
+/* { dg-final { scan-assembler-times "nop|NOP|SWYM" 3 { target { ! { 
alpha*-*-* } } } } } */
 /* { dg-final { scan-assembler-times "bis" 3 { target alpha*-*-* } } } */

 extern int a;
diff --git a/gcc/testsuite/c-c++-common/patchable_function_entry-definition.c 
b/gcc/testsuite/c-c++-common/patchable_function_entry-definition.c
index ab94533..ad7d7a9 100644
--- a/gcc/testsuite/c-c++-common/patchable_function_entry-definition.c
+++ b/gcc/testsuite/c-c++-common/patchable_function_entry-definition.c
@@ -1,7 +1,7 @@
 /* { dg-do compile { target { ! { nvptx*-*-* visium-*-* } } } } */
 /* { dg-options "-O2 -fpatchable-function-entry=3,1" } */
 /* { dg-additional-options "-fno-pie" { target sparc*-*-* } } */
-/* { dg-final { scan-assembler-times "nop|NOP" 1 { target { ! { alpha*-*-* } } 
} } } */
+/* { dg-final { scan-assembler-times "nop|NOP|SWYM" 1 { target { ! { 
alpha*-*-* } } } } } */
 /* { dg-final { scan-assembler-times "bis" 1 { target alpha*-*-* } } } */

 extern int a;

Reply via email to