Skip to content

Commit

Permalink
S/390: Make tests expect column numbers in RTL output
Browse files Browse the repository at this point in the history
RTL output now includes column numbers in addition to line numbers,
like this:

  "gcc/testsuite/gcc.target/s390/md/andc-splitter-1.c":16:1

This confuses some S/390 tests.

gcc/testsuite/ChangeLog:

2018-11-05  Ilya Leoshkevich  <[email protected]>

	* gcc.target/s390/md/andc-splitter-1.c: Add colon to
	expectations.
	* gcc.target/s390/md/andc-splitter-2.c: Likewise.
	* gcc.target/s390/md/setmem_long-1.c: Likewise.

From-SVN: r265813
  • Loading branch information
iii-i authored and Ilya Leoshkevich committed Nov 5, 2018
1 parent 733441e commit d64d068
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 18 deletions.
7 changes: 7 additions & 0 deletions gcc/testsuite/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2018-11-05 Ilya Leoshkevich <[email protected]>

* gcc.target/s390/md/andc-splitter-1.c: Add colon to
expectations.
* gcc.target/s390/md/andc-splitter-2.c: Likewise.
* gcc.target/s390/md/setmem_long-1.c: Likewise.

2018-11-05 Richard Biener <[email protected]>

PR tree-optimization/87873
Expand Down
16 changes: 8 additions & 8 deletions gcc/testsuite/gcc.target/s390/md/andc-splitter-1.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,26 @@
__attribute__ ((noinline))
unsigned long andc_vv(unsigned long a, unsigned long b)
{ return ~b & a; }
/* { dg-final { scan-assembler ":16 .\* \{\\*anddi3\}" } } */
/* { dg-final { scan-assembler ":16 .\* \{\\*xordi3\}" } } */
/* { dg-final { scan-assembler ":16:.\* \{\\*anddi3\}" } } */
/* { dg-final { scan-assembler ":16:.\* \{\\*xordi3\}" } } */

__attribute__ ((noinline))
unsigned long andc_pv(unsigned long *a, unsigned long b)
{ return ~b & *a; }
/* { dg-final { scan-assembler ":22 .\* \{\\*anddi3\}" } } */
/* { dg-final { scan-assembler ":22 .\* \{\\*xordi3\}" } } */
/* { dg-final { scan-assembler ":22:.\* \{\\*anddi3\}" } } */
/* { dg-final { scan-assembler ":22:.\* \{\\*xordi3\}" } } */

__attribute__ ((noinline))
unsigned long andc_vp(unsigned long a, unsigned long *b)
{ return ~*b & a; }
/* { dg-final { scan-assembler ":28 .\* \{\\*anddi3\}" } } */
/* { dg-final { scan-assembler ":28 .\* \{\\*xordi3\}" } } */
/* { dg-final { scan-assembler ":28:.\* \{\\*anddi3\}" } } */
/* { dg-final { scan-assembler ":28:.\* \{\\*xordi3\}" } } */

__attribute__ ((noinline))
unsigned long andc_pp(unsigned long *a, unsigned long *b)
{ return ~*b & *a; }
/* { dg-final { scan-assembler ":34 .\* \{\\*anddi3\}" } } */
/* { dg-final { scan-assembler ":34 .\* \{\\*xordi3\}" } } */
/* { dg-final { scan-assembler ":34:.\* \{\\*anddi3\}" } } */
/* { dg-final { scan-assembler ":34:.\* \{\\*xordi3\}" } } */

/* { dg-final { scan-assembler-times "\tngr\?k\?\t" 4 } } */
/* { dg-final { scan-assembler-times "\txgr\?\t" 4 } } */
Expand Down
16 changes: 8 additions & 8 deletions gcc/testsuite/gcc.target/s390/md/andc-splitter-2.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,26 @@
__attribute__ ((noinline))
unsigned int andc_vv(unsigned int a, unsigned int b)
{ return ~b & a; }
/* { dg-final { scan-assembler ":16 .\* \{\\*andsi3_\(esa\|zarch\)\}" } } */
/* { dg-final { scan-assembler ":16 .\* \{\\*xorsi3\}" } } */
/* { dg-final { scan-assembler ":16:.\* \{\\*andsi3_\(esa\|zarch\)\}" } } */
/* { dg-final { scan-assembler ":16:.\* \{\\*xorsi3\}" } } */

__attribute__ ((noinline))
unsigned int andc_pv(unsigned int *a, unsigned int b)
{ return ~b & *a; }
/* { dg-final { scan-assembler ":22 .\* \{\\*andsi3_\(esa\|zarch\)\}" } } */
/* { dg-final { scan-assembler ":22 .\* \{\\*xorsi3\}" } } */
/* { dg-final { scan-assembler ":22:.\* \{\\*andsi3_\(esa\|zarch\)\}" } } */
/* { dg-final { scan-assembler ":22:.\* \{\\*xorsi3\}" } } */

__attribute__ ((noinline))
unsigned int andc_vp(unsigned int a, unsigned int *b)
{ return ~*b & a; }
/* { dg-final { scan-assembler ":28 .\* \{\\*andsi3_\(esa\|zarch\)\}" } } */
/* { dg-final { scan-assembler ":28 .\* \{\\*xorsi3\}" } } */
/* { dg-final { scan-assembler ":28:.\* \{\\*andsi3_\(esa\|zarch\)\}" } } */
/* { dg-final { scan-assembler ":28:.\* \{\\*xorsi3\}" } } */

__attribute__ ((noinline))
unsigned int andc_pp(unsigned int *a, unsigned int *b)
{ return ~*b & *a; }
/* { dg-final { scan-assembler ":34 .\* \{\\*andsi3_\(esa\|zarch\)\}" } } */
/* { dg-final { scan-assembler ":34 .\* \{\\*xorsi3\}" } } */
/* { dg-final { scan-assembler ":34:.\* \{\\*andsi3_\(esa\|zarch\)\}" } } */
/* { dg-final { scan-assembler ":34:.\* \{\\*xorsi3\}" } } */

/* { dg-final { scan-assembler-times "\tnr\?k\?\t" 4 } } */
/* { dg-final { scan-assembler-times "\txr\?k\?\t" 4 } } */
Expand Down
4 changes: 2 additions & 2 deletions gcc/testsuite/gcc.target/s390/md/setmem_long-1.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ void test2(char *p, int c, int len)
}

/* Check that the right patterns are used. */
/* { dg-final { scan-assembler-times {c"?:16 .*{[*]setmem_long_?3?1?z?}} 1 } } */
/* { dg-final { scan-assembler-times {c"?:22 .*{[*]setmem_long_and_?3?1?z?}} 1 } } */
/* { dg-final { scan-assembler-times {c"?:16:.*{[*]setmem_long_?3?1?z?}} 1 } } */
/* { dg-final { scan-assembler-times {c"?:22:.*{[*]setmem_long_and_?3?1?z?}} 1 } } */

#define LEN 500
char buf[LEN + 2];
Expand Down

0 comments on commit d64d068

Please sign in to comment.