diff mbox series

S/390: Fix expectation in mrecord-mcount test for 31-bit mode

Message ID 20181114125555.91172-1-iii@linux.ibm.com
State New
Headers show
Series S/390: Fix expectation in mrecord-mcount test for 31-bit mode | expand

Commit Message

Ilya Leoshkevich Nov. 14, 2018, 12:55 p.m. UTC
The emitted address is .long, not .quad, in that case.

gcc/testsuite/ChangeLog:

2018-11-14  Ilya Leoshkevich  <iii@linux.ibm.com>

	* gcc.target/s390/mrecord-mcount.c (profileme): Expect .long in
	31-bit mode.
---
 gcc/testsuite/gcc.target/s390/mrecord-mcount.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Andreas Krebbel Nov. 14, 2018, 1:06 p.m. UTC | #1
On 14.11.18 13:55, Ilya Leoshkevich wrote:
> The emitted address is .long, not .quad, in that case.
> 
> gcc/testsuite/ChangeLog:
> 
> 2018-11-14  Ilya Leoshkevich  <iii@linux.ibm.com>
> 
> 	* gcc.target/s390/mrecord-mcount.c (profileme): Expect .long in
> 	31-bit mode.

Ok. Thanks!

Andreas
diff mbox series

Patch

diff --git a/gcc/testsuite/gcc.target/s390/mrecord-mcount.c b/gcc/testsuite/gcc.target/s390/mrecord-mcount.c
index d8a23ffdca4..54ced9f7a11 100644
--- a/gcc/testsuite/gcc.target/s390/mrecord-mcount.c
+++ b/gcc/testsuite/gcc.target/s390/mrecord-mcount.c
@@ -5,6 +5,7 @@  void
 profileme (void)
 {
   /* { dg-final { scan-assembler ".section __mcount_loc, \"a\",@progbits" } } */
-  /* { dg-final { scan-assembler ".quad 1b" } } */
+  /* { dg-final { scan-assembler ".long 1b" { target { ! lp64 } } } } */
+  /* { dg-final { scan-assembler ".quad 1b" { target { lp64 } } } } */
   /* { dg-final { scan-assembler ".previous" } } */
 }