[Testsuite,MIPS] Fixing umips-stroe16-2.c failure started with r255348

Message ID CAKjxQHmUEhtw3b27PoM0GN4wz5_ZUuD0CUE=deUf8u5VJQ+hfA@mail.gmail.com
State New
Headers show
Series
  • [Testsuite,MIPS] Fixing umips-stroe16-2.c failure started with r255348
Related show

Commit Message

Paul Hua March 24, 2018, 3:17 a.m.
Hi:

The umips-stroe16-2.c test fails after r255348, cause the r255348 does not print
 "[length = NN]" but "[c=NN l=NN]".

The asm for umips-stroe16-2.c.
before r255348:
...
         sb      $0,0($4)         # 9    *movqi_internal/6       [length = 2]
...
after r255348:
...
         sb      $0,0($4)         # 9    [c=4 l=2]  *movqi_internal/5
...

The patch changs:

  -/* { dg-final { scan-assembler
"\tsb\t\\\$0,0\\(\\\$\[0-9\]+\\)\[^\n\]*length = 2" } } */
 +/* { dg-final { scan-assembler
"\tsb\t\\\$0,0\\(\\\$\[0-9\]+\\)\[^\n\]*l=2" } } */

Thanks.
Paul Hua.

ChangeLog entries:

gcc/testsuite/ChangeLog

2018-03-24  Chenghua Xu <paul.hua.gm@gmail.com>

    * gcc.target/mips/umips-stroe16-2.c: Change "length = 2"
      to "l=2" in dg-final.

Comments

Matthew Fortune March 27, 2018, 10:01 a.m. | #1
Hi Paul

> ChangeLog entries:

> 

> gcc/testsuite/ChangeLog

> 

> 2018-03-24  Chenghua Xu <paul.hua.gm@gmail.com>

> 

>     * gcc.target/mips/umips-stroe16-2.c: Change "length = 2"

>       to "l=2" in dg-final.


Looks good. Thanks for the cleanup. OK to commit.

Matthew

Patch

diff --git a/gcc/testsuite/gcc.target/mips/umips-store16-2.c b/gcc/testsuite/gcc.target/mips/umips-store16-2.c
index 0748edb5692..7fbd5e57305 100644
--- a/gcc/testsuite/gcc.target/mips/umips-store16-2.c
+++ b/gcc/testsuite/gcc.target/mips/umips-store16-2.c
@@ -17,6 +17,6 @@  f3 (unsigned int *ptr)
 {
   *ptr = 0;
 }
-/* { dg-final { scan-assembler "\tsb\t\\\$0,0\\(\\\$\[0-9\]+\\)\[^\n\]*length = 2" } } */
-/* { dg-final { scan-assembler "\tsh\t\\\$0,0\\(\\\$\[0-9\]+\\)\[^\n\]*length = 2" } } */
-/* { dg-final { scan-assembler "\tsw\t\\\$0,0\\(\\\$\[0-9\]+\\)\[^\n\]*length = 2" } } */
+/* { dg-final { scan-assembler "\tsb\t\\\$0,0\\(\\\$\[0-9\]+\\)\[^\n\]*l=2" } } */
+/* { dg-final { scan-assembler "\tsh\t\\\$0,0\\(\\\$\[0-9\]+\\)\[^\n\]*l=2" } } */
+/* { dg-final { scan-assembler "\tsw\t\\\$0,0\\(\\\$\[0-9\]+\\)\[^\n\]*l=2" } } */