public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] MIPS: Fix binutils-all tests for r6 default triples
@ 2023-08-17  3:58 YunQiang Su
  2023-08-28  3:54 ` YunQiang Su
  0 siblings, 1 reply; 2+ messages in thread
From: YunQiang Su @ 2023-08-17  3:58 UTC (permalink / raw)
  To: macro; +Cc: binutils, YunQiang Su

MIPS16 is not supported for MIPSr6 as ISA documents; microMIPS
on MIPSr6 is not supported by binutils yet, and in fact we have
no plan to support it.

So let's add `-32 -mips1` as options to mips16-extend-noinsn.d and
mixed-mips16-micromips.d.
---
 binutils/testsuite/binutils-all/mips/mips16-extend-noinsn.d   | 1 +
 binutils/testsuite/binutils-all/mips/mixed-mips16-micromips.d | 1 +
 2 files changed, 2 insertions(+)

diff --git a/binutils/testsuite/binutils-all/mips/mips16-extend-noinsn.d b/binutils/testsuite/binutils-all/mips/mips16-extend-noinsn.d
index 41bb49e6ac7..74f537c3213 100644
--- a/binutils/testsuite/binutils-all/mips/mips16-extend-noinsn.d
+++ b/binutils/testsuite/binutils-all/mips/mips16-extend-noinsn.d
@@ -1,4 +1,5 @@
 #PROG: objcopy
+#as: -32 -mips1
 #objdump: -d --prefix-addresses --show-raw-insn
 #name: MIPS16 unsupported EXTEND and undefined opcode disassembly
 
diff --git a/binutils/testsuite/binutils-all/mips/mixed-mips16-micromips.d b/binutils/testsuite/binutils-all/mips/mixed-mips16-micromips.d
index 4a53dfb8578..d3dc14e97f8 100644
--- a/binutils/testsuite/binutils-all/mips/mixed-mips16-micromips.d
+++ b/binutils/testsuite/binutils-all/mips/mixed-mips16-micromips.d
@@ -1,4 +1,5 @@
 #PROG: objcopy
+#as: -32 -mips1
 #objdump: -drt
 #name: Mixed MIPS16 and microMIPS disassembly
 
-- 
2.30.2


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] MIPS: Fix binutils-all tests for r6 default triples
  2023-08-17  3:58 [PATCH] MIPS: Fix binutils-all tests for r6 default triples YunQiang Su
@ 2023-08-28  3:54 ` YunQiang Su
  0 siblings, 0 replies; 2+ messages in thread
From: YunQiang Su @ 2023-08-28  3:54 UTC (permalink / raw)
  To: YunQiang Su; +Cc: macro, binutils

YunQiang Su <yunqiang.su@cipunited.com> 于2023年8月17日周四 11:58写道:
>
> MIPS16 is not supported for MIPSr6 as ISA documents; microMIPS
> on MIPSr6 is not supported by binutils yet, and in fact we have
> no plan to support it.
>
> So let's add `-32 -mips1` as options to mips16-extend-noinsn.d and
> mixed-mips16-micromips.d.

@Maciej W. Rozycki Can you have a glance of this +2-2 patch?
It is quite simple.

> ---
>  binutils/testsuite/binutils-all/mips/mips16-extend-noinsn.d   | 1 +
>  binutils/testsuite/binutils-all/mips/mixed-mips16-micromips.d | 1 +
>  2 files changed, 2 insertions(+)
>
> diff --git a/binutils/testsuite/binutils-all/mips/mips16-extend-noinsn.d b/binutils/testsuite/binutils-all/mips/mips16-extend-noinsn.d
> index 41bb49e6ac7..74f537c3213 100644
> --- a/binutils/testsuite/binutils-all/mips/mips16-extend-noinsn.d
> +++ b/binutils/testsuite/binutils-all/mips/mips16-extend-noinsn.d
> @@ -1,4 +1,5 @@
>  #PROG: objcopy
> +#as: -32 -mips1
>  #objdump: -d --prefix-addresses --show-raw-insn
>  #name: MIPS16 unsupported EXTEND and undefined opcode disassembly
>
> diff --git a/binutils/testsuite/binutils-all/mips/mixed-mips16-micromips.d b/binutils/testsuite/binutils-all/mips/mixed-mips16-micromips.d
> index 4a53dfb8578..d3dc14e97f8 100644
> --- a/binutils/testsuite/binutils-all/mips/mixed-mips16-micromips.d
> +++ b/binutils/testsuite/binutils-all/mips/mixed-mips16-micromips.d
> @@ -1,4 +1,5 @@
>  #PROG: objcopy
> +#as: -32 -mips1
>  #objdump: -drt
>  #name: Mixed MIPS16 and microMIPS disassembly
>
> --
> 2.30.2
>


-- 
YunQiang Su

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-08-28  3:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-17  3:58 [PATCH] MIPS: Fix binutils-all tests for r6 default triples YunQiang Su
2023-08-28  3:54 ` YunQiang Su

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).