From: Xionghu Luo Date: Mon, 1 Feb 2021 02:29:14 +0000 (-0600) Subject: testsuite: Update pr79251 ilp32 store regex X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b90d051ecbc1d8972ae1bf0cd7588fcc66df0722;p=gcc.git testsuite: Update pr79251 ilp32 store regex BE ilp32 Linux generates extra stack stwu instructions which shouldn't be counted in, \m … \M is needed around each instruction, not just the beginning and end of the entire pattern. gcc/testsuite/ChangeLog: 2021-02-01 Xionghu Luo * gcc.target/powerpc/pr79251.p8.c: Update store count regex. * gcc.target/powerpc/pr79251.p9.c: Likewise. --- diff --git a/gcc/testsuite/gcc.target/powerpc/pr79251.p8.c b/gcc/testsuite/gcc.target/powerpc/pr79251.p8.c index b0e7732a38b..178e02fc866 100644 --- a/gcc/testsuite/gcc.target/powerpc/pr79251.p8.c +++ b/gcc/testsuite/gcc.target/powerpc/pr79251.p8.c @@ -16,7 +16,7 @@ /* { dg-final { scan-assembler-times {\mrlwinm\M} 10 { target ilp32 } } } */ /* { dg-final { scan-assembler-times {\mstxvw4x\M} 6 { target ilp32 } } } */ /* { dg-final { scan-assembler-times {\mstxvd2x\M} 4 { target ilp32 } } } */ -/* { dg-final { scan-assembler-times {\mstb|sth|stw|stfs|stfd\M} 12 { target ilp32 } } } */ +/* { dg-final { scan-assembler-times {\mstb\M|\msth\M|\mstw\M|\mstfs\M|\mstfd\M} 12 { target ilp32 } } } */ /* { dg-final { scan-assembler-times {\mlxvw4x\M} 6 { target ilp32 } } } */ /* { dg-final { scan-assembler-times {\mlxvd2x\M} 4 { target ilp32 } } } */ diff --git a/gcc/testsuite/gcc.target/powerpc/pr79251.p9.c b/gcc/testsuite/gcc.target/powerpc/pr79251.p9.c index cedb0bf7da8..2ae2da8c72e 100644 --- a/gcc/testsuite/gcc.target/powerpc/pr79251.p9.c +++ b/gcc/testsuite/gcc.target/powerpc/pr79251.p9.c @@ -17,6 +17,6 @@ /* { dg-final { scan-assembler-times {\mrlwinm\M} 10 { target ilp32 } } } */ /* { dg-final { scan-assembler-times {\mstxv\M} 10 { target ilp32 } } } */ -/* { dg-final { scan-assembler-times {\mstb|sth|stw|stfs|stfd\M} 12 { target ilp32 } } } */ +/* { dg-final { scan-assembler-times {\mstb\M|\msth\M|\mstw\M|\mstfs\M|\mstfd\M} 12 { target ilp32 } } } */ /* { dg-final { scan-assembler-times {\mlxv\M} 10 { target ilp32 } } } */