From 487a4df6327e4b58da91399babeb2c6f00e6ba17 Mon Sep 17 00:00:00 2001 From: Ilya Leoshkevich Date: Wed, 14 Nov 2018 13:08:03 +0000 Subject: [PATCH] [PATCH 2/2] S/390: Fix expectation in mrecord-mcount test for 31-bit mode The emitted address is .long, not .quad, in that case. gcc/testsuite/ChangeLog: 2018-11-14 Ilya Leoshkevich * gcc.target/s390/mrecord-mcount.c (profileme): Expect .long in 31-bit mode. From-SVN: r266145 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.target/s390/mrecord-mcount.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index cae11db79cf..6cc52f38b51 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2018-11-14 Ilya Leoshkevich + + * gcc.target/s390/mrecord-mcount.c (profileme): Expect .long in + 31-bit mode. + 2018-11-14 Ilya Leoshkevich * gcc.target/s390/global-array-almost-huge-element.c: Run only 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" } } */ } -- 2.30.2