public inbox for binutils-cvs@sourceware.org
 help / color / mirror / Atom feed
* [binutils-gdb/binutils-2_41-branch] MIPS/GAS/testsuite: Force o32 for tests expecting 32-bit addressing
@ 2023-07-28  5:06 Maciej W. Rozycki
  0 siblings, 0 replies; only message in thread
From: Maciej W. Rozycki @ 2023-07-28  5:06 UTC (permalink / raw)
  To: bfd-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=92179de8b2639d601da78e1c994d9fb0869ab378

commit 92179de8b2639d601da78e1c994d9fb0869ab378
Author: YunQiang Su <yunqiang.su@cipunited.com>
Date:   Fri Jul 28 06:00:36 2023 +0100

    MIPS/GAS/testsuite: Force o32 for tests expecting 32-bit addressing
    
    A few GAS tests expect to be assembled with 32-bit addressing, otherwise
    causing an assembly warning:
    
    .../gas/testsuite/gas/mips/fix-rm7000-2.s:11: Warning: la used to load 64-bit address; recommend using dla instead
    
    or pattern dump mismatches against 32-bit address calculations, however
    these tests do not enforce their expectation in any.  For none of them
    the specific ABI used is of any relevance however, so select the o32 ABI
    unconditionally, removing these failures with OpenBSD targets:
    
    mips64-openbsd  -FAIL: MIPS RM7000 workarounds test 2 (micromips)
    mips64-openbsd  -FAIL: MIPS RM7000 workarounds test 2 (mips3)
    mips64-openbsd  -FAIL: MIPS RM7000 workarounds test 2 (mips4)
    mips64-openbsd  -FAIL: MIPS RM7000 workarounds test 2 (mips5)
    mips64-openbsd  -FAIL: MIPS RM7000 workarounds test 2 (mips64)
    mips64-openbsd  -FAIL: MIPS RM7000 workarounds test 2 (mips64r2)
    mips64-openbsd  -FAIL: MIPS RM7000 workarounds test 2 (mips64r3)
    mips64-openbsd  -FAIL: MIPS RM7000 workarounds test 2 (mips64r5)
    mips64-openbsd  -FAIL: MIPS RM7000 workarounds test 2 (octeon)
    mips64-openbsd  -FAIL: MIPS RM7000 workarounds test 2 (octeon2)
    mips64-openbsd  -FAIL: MIPS RM7000 workarounds test 2 (octeon3)
    mips64-openbsd  -FAIL: MIPS RM7000 workarounds test 2 (octeonp)
    mips64-openbsd  -FAIL: MIPS RM7000 workarounds test 2 (r4000)
    mips64-openbsd  -FAIL: MIPS RM7000 workarounds test 2 (sb1)
    mips64-openbsd  -FAIL: MIPS RM7000 workarounds test 2 (vr5400)
    mips64-openbsd  -FAIL: MIPS RM7000 workarounds test 2 (xlr)
    mips64-openbsd  -FAIL: MIPS-OCTEON octeon_saa_saad (octeon2)
    mips64-openbsd  -FAIL: MIPS-OCTEON octeon_saa_saad (octeon3)
    mips64-openbsd  -FAIL: MIPS-OCTEON octeon_saa_saad (octeonp)
    mips64-openbsd  -FAIL: Full MIPS R5900
    mips64-openbsd  -FAIL: MIPS R5900 VU0
    mips64-openbsd  -FAIL: Paired LL/SC for mips64r6 (mips64r6)
    mips64el-openbsd  -FAIL: MIPS RM7000 workarounds test 2 (micromips)
    mips64el-openbsd  -FAIL: MIPS RM7000 workarounds test 2 (mips3)
    mips64el-openbsd  -FAIL: MIPS RM7000 workarounds test 2 (mips4)
    mips64el-openbsd  -FAIL: MIPS RM7000 workarounds test 2 (mips5)
    mips64el-openbsd  -FAIL: MIPS RM7000 workarounds test 2 (mips64)
    mips64el-openbsd  -FAIL: MIPS RM7000 workarounds test 2 (mips64r2)
    mips64el-openbsd  -FAIL: MIPS RM7000 workarounds test 2 (mips64r3)
    mips64el-openbsd  -FAIL: MIPS RM7000 workarounds test 2 (mips64r5)
    mips64el-openbsd  -FAIL: MIPS RM7000 workarounds test 2 (octeon)
    mips64el-openbsd  -FAIL: MIPS RM7000 workarounds test 2 (octeon2)
    mips64el-openbsd  -FAIL: MIPS RM7000 workarounds test 2 (octeon3)
    mips64el-openbsd  -FAIL: MIPS RM7000 workarounds test 2 (octeonp)
    mips64el-openbsd  -FAIL: MIPS RM7000 workarounds test 2 (r4000)
    mips64el-openbsd  -FAIL: MIPS RM7000 workarounds test 2 (sb1)
    mips64el-openbsd  -FAIL: MIPS RM7000 workarounds test 2 (vr5400)
    mips64el-openbsd  -FAIL: MIPS RM7000 workarounds test 2 (xlr)
    mips64el-openbsd  -FAIL: MIPS-OCTEON octeon_saa_saad (octeon2)
    mips64el-openbsd  -FAIL: MIPS-OCTEON octeon_saa_saad (octeon3)
    mips64el-openbsd  -FAIL: MIPS-OCTEON octeon_saa_saad (octeonp)
    mips64el-openbsd  -FAIL: Full MIPS R5900
    mips64el-openbsd  -FAIL: MIPS R5900 VU0
    mips64el-openbsd  -FAIL: Paired LL/SC for mips64r6 (mips64r6)
    
    Co-Authored-By: Maciej W. Rozycki <macro@orcam.me.uk>
    
            gas/
            * testsuite/gas/mips/fix-rm7000-2.d: Add `-32' to the `as' tag.
            * testsuite/gas/mips/micromips@fix-rm7000-2.d: Likewise.
            * testsuite/gas/mips/r5900-full.d: Likewise.
            * testsuite/gas/mips/r5900-vu0.d: Likewise.
            * testsuite/gas/mips/llpscp-64.d: Add `as' tag with `-32'.
            * testsuite/gas/mips/octeon-saa-saad.d: Likewise.
    
    (cherry picked from commit ce0077a2e724146285c282037a41c68de6c0608d)

Diff:
---
 gas/testsuite/gas/mips/fix-rm7000-2.d           | 2 +-
 gas/testsuite/gas/mips/llpscp-64.d              | 1 +
 gas/testsuite/gas/mips/micromips@fix-rm7000-2.d | 2 +-
 gas/testsuite/gas/mips/octeon-saa-saad.d        | 1 +
 gas/testsuite/gas/mips/r5900-full.d             | 2 +-
 gas/testsuite/gas/mips/r5900-vu0.d              | 2 +-
 6 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/gas/testsuite/gas/mips/fix-rm7000-2.d b/gas/testsuite/gas/mips/fix-rm7000-2.d
index 3ec28174336..1b73177dfd7 100644
--- a/gas/testsuite/gas/mips/fix-rm7000-2.d
+++ b/gas/testsuite/gas/mips/fix-rm7000-2.d
@@ -1,4 +1,4 @@
-#as: -mfix-rm7000
+#as: -32 -mfix-rm7000
 #objdump: -dz --prefix-addresses
 #name: MIPS RM7000 workarounds test 2
 #source: fix-rm7000-2.s
diff --git a/gas/testsuite/gas/mips/llpscp-64.d b/gas/testsuite/gas/mips/llpscp-64.d
index bbf1efb062f..2f4ab29cbcc 100644
--- a/gas/testsuite/gas/mips/llpscp-64.d
+++ b/gas/testsuite/gas/mips/llpscp-64.d
@@ -1,4 +1,5 @@
 #objdump: -dr
+#as: -32
 #name: Paired LL/SC for mips64r6
 
 .*: +file format .*
diff --git a/gas/testsuite/gas/mips/micromips@fix-rm7000-2.d b/gas/testsuite/gas/mips/micromips@fix-rm7000-2.d
index b95d6154d0e..8091feb7346 100644
--- a/gas/testsuite/gas/mips/micromips@fix-rm7000-2.d
+++ b/gas/testsuite/gas/mips/micromips@fix-rm7000-2.d
@@ -1,4 +1,4 @@
-#as: -mfix-rm7000
+#as: -32 -mfix-rm7000
 #objdump: -dz --prefix-addresses
 #name: MIPS RM7000 workarounds test 2
 #source: fix-rm7000-2.s
diff --git a/gas/testsuite/gas/mips/octeon-saa-saad.d b/gas/testsuite/gas/mips/octeon-saa-saad.d
index e5dff8ea32c..94e3d82acc8 100644
--- a/gas/testsuite/gas/mips/octeon-saa-saad.d
+++ b/gas/testsuite/gas/mips/octeon-saa-saad.d
@@ -1,4 +1,5 @@
 #objdump: -d -r --show-raw-insn
+#as: -32
 #name: MIPS-OCTEON octeon_saa_saad
 
 .*: +file format .*mips.*
diff --git a/gas/testsuite/gas/mips/r5900-full.d b/gas/testsuite/gas/mips/r5900-full.d
index 96892091fdf..a9c90c9d0ec 100644
--- a/gas/testsuite/gas/mips/r5900-full.d
+++ b/gas/testsuite/gas/mips/r5900-full.d
@@ -1,6 +1,6 @@
 #objdump: -dr --prefix-addresses --show-raw-insn -M gpr-names=numeric -mmips:5900
 #name: Full MIPS R5900
-#as: -march=r5900 -mtune=r5900
+#as: -32 -march=r5900 -mtune=r5900
 
 .*: +file format .*mips.*
 
diff --git a/gas/testsuite/gas/mips/r5900-vu0.d b/gas/testsuite/gas/mips/r5900-vu0.d
index 268c7d64aa4..fd15b82e1b3 100644
--- a/gas/testsuite/gas/mips/r5900-vu0.d
+++ b/gas/testsuite/gas/mips/r5900-vu0.d
@@ -1,6 +1,6 @@
 #objdump: -dr --prefix-addresses --show-raw-insn -M gpr-names=numeric -mmips:5900
 #name: MIPS R5900 VU0
-#as: -march=r5900
+#as: -32 -march=r5900
 
 .*: +file format .*mips.*

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-07-28  5:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-28  5:06 [binutils-gdb/binutils-2_41-branch] MIPS/GAS/testsuite: Force o32 for tests expecting 32-bit addressing Maciej W. Rozycki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).