[binutils-gdb] MIPS/GAS/testsuite: Add R10000 CPU architecture
Maciej W. Rozycki
macro@sourceware.org
Fri Jul 19 08:50:29 GMT 2024
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=5dd9c473f6bf04f12ec93182ccfa165e962e3500
commit 5dd9c473f6bf04f12ec93182ccfa165e962e3500
Author: Maciej W. Rozycki <macro@redhat.com>
Date: Fri Jul 19 09:42:56 2024 +0100
MIPS/GAS/testsuite: Add R10000 CPU architecture
Add a fully interlocked MIPS IV CPU so that we can have coverage for
MIPS IV instruction sequences with and without instruction separation
required for a HI/LO data anti-dependency.
Diff:
---
gas/testsuite/gas/mips/mips.exp | 2 ++
gas/testsuite/gas/mips/r10000@c0.d | 5 +++++
gas/testsuite/gas/mips/r10000@c1.d | 5 +++++
gas/testsuite/gas/mips/r10000@cp0c.d | 5 +++++
gas/testsuite/gas/mips/r10000@save-sub.d | 5 +++++
5 files changed, 22 insertions(+)
diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp
index e388bb78044..ae39614e8f9 100644
--- a/gas/testsuite/gas/mips/mips.exp
+++ b/gas/testsuite/gas/mips/mips.exp
@@ -522,6 +522,8 @@ mips_arch_create r4000 64 mips3 {} \
mips_arch_create r5900 64 mips3 { gpr_ilocks singlefloat nollsc } \
{ -march=r5900 -mtune=r5900 } { -mmips:5900 } \
{ mipsr5900el-*-* mips64r5900el-*-* }
+mips_arch_create r10000 64 mips4 {} \
+ { -march=r10000 -mtune=r10000 } { -mmips:10000 }
mips_arch_create vr5400 64 mips4 { ror } \
{ -march=vr5400 -mtune=vr5400 } { -mmips:5400 }
mips_arch_create interaptiv-mr2 32 mips32r3 {} \
diff --git a/gas/testsuite/gas/mips/r10000@c0.d b/gas/testsuite/gas/mips/r10000@c0.d
new file mode 100644
index 00000000000..7771a42a938
--- /dev/null
+++ b/gas/testsuite/gas/mips/r10000@c0.d
@@ -0,0 +1,5 @@
+#objdump: -d --prefix-addresses --show-raw-insn
+#name: MIPS C0/COP0 instructions
+#as: -32
+#source: c0.s
+#dump: mips3@c0.d
diff --git a/gas/testsuite/gas/mips/r10000@c1.d b/gas/testsuite/gas/mips/r10000@c1.d
new file mode 100644
index 00000000000..e445db91679
--- /dev/null
+++ b/gas/testsuite/gas/mips/r10000@c1.d
@@ -0,0 +1,5 @@
+#objdump: -d --prefix-addresses --show-raw-insn
+#name: MIPS C1/COP1 instructions
+#as: -32
+#source: c1.s
+#dump: mips4@c1.d
diff --git a/gas/testsuite/gas/mips/r10000@cp0c.d b/gas/testsuite/gas/mips/r10000@cp0c.d
new file mode 100644
index 00000000000..cf8dc942714
--- /dev/null
+++ b/gas/testsuite/gas/mips/r10000@cp0c.d
@@ -0,0 +1,5 @@
+#objdump: -d --prefix-addresses --show-raw-insn
+#name: MIPS CP0 control register move instructions
+#as: -32
+#source: cp0c.s
+#dump: mips1@cp0c.d
diff --git a/gas/testsuite/gas/mips/r10000@save-sub.d b/gas/testsuite/gas/mips/r10000@save-sub.d
new file mode 100644
index 00000000000..047d323f804
--- /dev/null
+++ b/gas/testsuite/gas/mips/r10000@save-sub.d
@@ -0,0 +1,5 @@
+#objdump: -dr
+#as: -32 -I$srcdir/$subdir
+#name: SAVE/RESTORE instruction subset disassembly
+#source: save-sub.s
+#dump: mips1@save-sub.d
More information about the Binutils-cvs
mailing list