diff mbox

Fix pr571518.c test case.

Message ID 51D5A004.4070102@arm.com
State New
Headers show

Commit Message

Marcus Shawcroft July 4, 2013, 4:17 p.m. UTC
Hello,

This:

http://gcc.gnu.org/ml/gcc-patches/2013-06/msg00767.html

recently introduced test case uses the pattern:

/* { dg-final { scan-rtl-dump-not "REG_EQUIV.*mem.*\"ip\"" "ira" } } */ 
 


I believe the intention is to look for the three tokens, in order within 
a single instruction, the actual effect is to look for the three tokens, 
in order, anywhere in the dump file.  The test fails for at least arm-* 
and aarch64-* where we happen to have the appropriate three tokens 
spread through the dump file.

/Marcus


2013-07-04  Marcus Shawcroft  <marcus.shawcroft@arm.com>

         * gcc.dg/pr57518.c: Adjust scan-rtl-dump-not pattern.

Comments

Mike Stump July 5, 2013, 4:25 p.m. UTC | #1
On Jul 4, 2013, at 9:17 AM, Marcus Shawcroft <marcus.shawcroft@arm.com> wrote:
>        * gcc.dg/pr57518.c: Adjust scan-rtl-dump-not pattern.

[ If you want a review or need an approval, be sure to ask Ok?  Just in case you forgot...  ]  Ok.

Thanks.
diff mbox

Patch

diff --git a/gcc/testsuite/gcc.dg/pr57518.c b/gcc/testsuite/gcc.dg/pr57518.c
index 4c84a85..47e819c 100644
--- a/gcc/testsuite/gcc.dg/pr57518.c
+++ b/gcc/testsuite/gcc.dg/pr57518.c
@@ -2,7 +2,7 @@ 
 
 /* { dg-do compile } */
 /* { dg-options "-O2 -fdump-rtl-ira" } */
-/* { dg-final { scan-rtl-dump-not "REG_EQUIV.*mem.*\"ip\"" "ira" } } */
+/* { dg-final { scan-rtl-dump-not "REG_EQUIV\[^\n\]*mem\[^\n\]*\"ip\"" "ira" } } */
 
 char ip[10];
 int total;