]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
MIPS/GAS/testsuite: Add R10000 CPU architecture
authorMaciej W. Rozycki <macro@redhat.com>
Fri, 19 Jul 2024 08:42:56 +0000 (09:42 +0100)
committerMaciej W. Rozycki <macro@redhat.com>
Fri, 19 Jul 2024 08:42:56 +0000 (09:42 +0100)
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.

gas/testsuite/gas/mips/mips.exp
gas/testsuite/gas/mips/r10000@c0.d [new file with mode: 0644]
gas/testsuite/gas/mips/r10000@c1.d [new file with mode: 0644]
gas/testsuite/gas/mips/r10000@cp0c.d [new file with mode: 0644]
gas/testsuite/gas/mips/r10000@save-sub.d [new file with mode: 0644]

index e388bb7804413042a5d5d0fc365b645d82903a6f..ae39614e8f9604228670c91edd6c4467c7cd36a7 100644 (file)
@@ -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 (file)
index 0000000..7771a42
--- /dev/null
@@ -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 (file)
index 0000000..e445db9
--- /dev/null
@@ -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 (file)
index 0000000..cf8dc94
--- /dev/null
@@ -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 (file)
index 0000000..047d323
--- /dev/null
@@ -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