[PATCH 2/2] S/390: Fix expectation in mrecord-mcount test for 31-bit
authorIlya Leoshkevich <iii@linux.ibm.com>
Wed, 14 Nov 2018 13:08:03 +0000 (13:08 +0000)
committerIlya Leoshkevich <iii@gcc.gnu.org>
Wed, 14 Nov 2018 13:08:03 +0000 (13:08 +0000)
 mode

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.

From-SVN: r266145

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/s390/mrecord-mcount.c

index cae11db79cf7bd3a2daa411e141e45b8854078ba..6cc52f38b51860377051002bb761a76d464621b0 100644 (file)
@@ -1,3 +1,8 @@
+2018-11-14  Ilya Leoshkevich  <iii@linux.ibm.com>
+
+       * gcc.target/s390/mrecord-mcount.c (profileme): Expect .long in
+       31-bit mode.
+
 2018-11-14  Ilya Leoshkevich  <iii@linux.ibm.com>
 
        * gcc.target/s390/global-array-almost-huge-element.c: Run only
index d8a23ffdca43f6dbc6ae8f86155116470cb44c62..54ced9f7a11ab86620ba49f2fbb1083d1b19c1d8 100644 (file)
@@ -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" } } */
 }