This makes the test more robust by relaxing the regexp.
Tested on SPARC/Solaris 11, applied on the mainline.
2019-11-04 Eric Botcazou <ebotca...@adacore.com>
PR testsuite/92302
* gcc.target/sparc/sparc-ret-3.c: Accept more registers in address.
--
Eric Botcazou
Index: gcc.target/sparc/sparc-ret-3.c
===================================================================
--- gcc.target/sparc/sparc-ret-3.c (revision 277436)
+++ gcc.target/sparc/sparc-ret-3.c (working copy)
@@ -50,4 +50,4 @@ unsigned int bug(unsigned int crc, const
return *ctx;
}
-/* { dg-final { scan-assembler "ld\[ \t\]*\\\[%i5\\+8\\\], %i0\n\[^\n\]*return\[ \t\]*%i7\\+8" } } */
+/* { dg-final { scan-assembler "ld\[ \t\]*\\\[%\[a-z0-9\]*\\+\[0-9\]*\\\], %i0\n\[^\n\]*return\[ \t\]*%i7\\+8" } } */