On 01/10/13 12:58, Dominique Dhumieres wrote:
Hi,AFAIU the regexps, they are not doing what they are supposed to do on powerpc-apple-darwin9: the assembly reads fmr f1,f0 i.e., fmr \[0-9\]+ or fmr 1 are never found. If I use "fmr f?\[0-9\]+,f?\[0-9\]+", then the test fails, in line with the other powerpc. If I use "lfd \(f?\[0-9\]+\),\[^\n\r\]*\[\n\r\]+\[ \t]*fmr f?1,\\1\[\n\r\]+\[ \t]*blr" the test passes.
I didn't tackle the Darwin issue since the original test was ignored on Darwin, but I guess it doesn't hurt to handle the Darwin "f" register variants.
OK for trunk?
commit 61ceeb130c2c2c342f19e716397ffddd212a0b32 Author: Aldy Hernandez <[email protected]> Date: Thu Jan 10 11:58:37 2013 -0600 PR target/55565 * gcc.target/powerpc/ppc-mov-1.c: Update scan-assembler-not regex. diff --git a/gcc/testsuite/gcc.target/powerpc/ppc-mov-1.c b/gcc/testsuite/gcc.target/powerpc/ppc-mov-1.c index 750cf85..f843015 100644 --- a/gcc/testsuite/gcc.target/powerpc/ppc-mov-1.c +++ b/gcc/testsuite/gcc.target/powerpc/ppc-mov-1.c @@ -1,7 +1,7 @@ /* { dg-do compile { target { powerpc*-*-* && lp64 } } } */ /* { dg-options "-O2" } */ -/* { dg-final { scan-assembler-not "fmr \[0-9\]+,\[0-9\]+" } } +/* { dg-final { scan-assembler-not "lfd \(f?\[0-9\]+\),\[^\n\r\]*\[\n\r\]+\[ \t]*fmr f?1,f?\\1\[\n\r\]+\[ \t]*blr" } } */ /* Origin:Pete Steinmetz <[email protected]> */
