From: segher Date: Wed, 12 Dec 2018 19:45:45 +0000 (+0000) Subject: Fix independent-cloneids-1.c testcase (PR88318) X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=acf6ca2a97694176ffccef9fc2baf50990391639;p=thirdparty%2Fgcc.git Fix independent-cloneids-1.c testcase (PR88318) The testcase uses REs like {(?n)\m_*bar[.$_]constprop[.$_]0:} to find what functions are defined. But, this also matches lines like .L.bar.constprop.0: (which are used on powerpc64-linux). The "(?n)" doesn't do anything here either. We should use "^" here instead of just "\m". PR testsuite/88318 * gcc.dg/independent-cloneids-1.c: Use ^ not \m. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@267063 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 109be22d09de..2fbf69c30672 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2018-12-12 Segher Boessenkool + + PR testsuite/88318 + * gcc.dg/independent-cloneids-1.c: Use ^ not \m. + 2018-12-12 Joel Brobecker * gcc.dg/lto/20100430-1_0.c: Add dg-require-profiling requirement. diff --git a/gcc/testsuite/gcc.dg/independent-cloneids-1.c b/gcc/testsuite/gcc.dg/independent-cloneids-1.c index 320389549296..61c120368410 100644 --- a/gcc/testsuite/gcc.dg/independent-cloneids-1.c +++ b/gcc/testsuite/gcc.dg/independent-cloneids-1.c @@ -28,11 +28,11 @@ baz (int arg) return foo (8); } -/* { dg-final { scan-assembler-times {(?n)\m_*bar[.$_]constprop[.$_]0:} 1 } } */ -/* { dg-final { scan-assembler-times {(?n)\m_*bar[.$_]constprop[.$_]1:} 1 } } */ -/* { dg-final { scan-assembler-times {(?n)\m_*bar[.$_]constprop[.$_]2:} 1 } } */ -/* { dg-final { scan-assembler-times {(?n)\m_*foo[.$_]constprop[.$_]0:} 1 } } */ -/* { dg-final { scan-assembler-times {(?n)\m_*foo[.$_]constprop[.$_]1:} 1 } } */ -/* { dg-final { scan-assembler-times {(?n)\m_*foo[.$_]constprop[.$_]2:} 1 } } */ -/* { dg-final { scan-assembler-not {(?n)\m_*foo[.$_]constprop[.$_]3:} } } */ -/* { dg-final { scan-assembler-not {(?n)\m_*foo[.$_]constprop[.$_]4:} } } */ +/* { dg-final { scan-assembler-times {(?n)^_*bar[.$_]constprop[.$_]0:} 1 } } */ +/* { dg-final { scan-assembler-times {(?n)^_*bar[.$_]constprop[.$_]1:} 1 } } */ +/* { dg-final { scan-assembler-times {(?n)^_*bar[.$_]constprop[.$_]2:} 1 } } */ +/* { dg-final { scan-assembler-times {(?n)^_*foo[.$_]constprop[.$_]0:} 1 } } */ +/* { dg-final { scan-assembler-times {(?n)^_*foo[.$_]constprop[.$_]1:} 1 } } */ +/* { dg-final { scan-assembler-times {(?n)^_*foo[.$_]constprop[.$_]2:} 1 } } */ +/* { dg-final { scan-assembler-not {(?n)^_*foo[.$_]constprop[.$_]3:} } } */ +/* { dg-final { scan-assembler-not {(?n)^_*foo[.$_]constprop[.$_]4:} } } */