testsuite: Update pr79251 ilp32 store regex
authorXionghu Luo <luoxhu@linux.ibm.com>
Mon, 1 Feb 2021 02:29:14 +0000 (20:29 -0600)
committerXionghu Luo <luoxhu@linux.ibm.com>
Mon, 1 Feb 2021 03:01:38 +0000 (21:01 -0600)
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  <luoxhu@linux.ibm.com>

* gcc.target/powerpc/pr79251.p8.c: Update store count regex.
* gcc.target/powerpc/pr79251.p9.c: Likewise.

gcc/testsuite/gcc.target/powerpc/pr79251.p8.c
gcc/testsuite/gcc.target/powerpc/pr79251.p9.c

index b0e7732..178e02f 100644 (file)
@@ -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 } } } */
 
index cedb0bf..2ae2da8 100644 (file)
@@ -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 } } } */