[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 cae11db..6cc52f3 100644 (file)
@@ -1,5 +1,10 @@
 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
        in 64-bit mode.
        * gcc.target/s390/global-array-almost-negative-huge-element.c:
index d8a23ff..54ced9f 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" } } */
 }