[PATCH 3 10/16] MIPS: Add the m6201 architecture

Jovan Dmitrovic jovan.dmitrovic@htecgroup.com
Thu Feb 5 16:24:08 GMT 2026


From: Matthew Fortune <matthew.fortune@imgtec.com>

gas/
	* config/tc-mips.c (mips_cpu_info_table): Add m6201.
	* doc/c-mips.texi: Add documentation for m6201.

gas/testsuite/
	* gas/mips/elf_mach_6201.d: New test.
	* gas/mips/mips.exp: Run the new test.

Co-authored by: Faraz Shahbazker <fshahbazker@wavecomp.com>
---
 gas/config/tc-mips.c                   |  2 ++
 gas/doc/c-mips.texi                    |  1 +
 gas/testsuite/gas/mips/elf_mach_6201.d | 22 ++++++++++++++++++++++
 gas/testsuite/gas/mips/mips.exp        |  1 +
 4 files changed, 26 insertions(+)
 create mode 100644 gas/testsuite/gas/mips/elf_mach_6201.d

diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index 8651e0e7beb..3f7323073a4 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -20754,6 +20754,8 @@ static const struct mips_cpu_info mips_cpu_info_table[] =
   { "m5101",          0, ASE_MCU,		ISA_MIPS32R5, CPU_MIPS32R5 },
   /* P5600 with EVA and Virtualization ASEs, other ASEs are optional.  */
   { "p5600",          0, ASE_VIRT | ASE_EVA | ASE_XPA,	ISA_MIPS32R5, CPU_MIPS32R5 },
+  /* M6200 family */
+  { "m6201",          0, ASE_MCU,		ISA_MIPS32R6, CPU_MIPS32R6 },
 
   /* MIPS 64 */
   { "5kc",            0, 0,			ISA_MIPS64,   CPU_MIPS64 },
diff --git a/gas/doc/c-mips.texi b/gas/doc/c-mips.texi
index 9d33c0516ed..f4aec70fdfe 100644
--- a/gas/doc/c-mips.texi
+++ b/gas/doc/c-mips.texi
@@ -449,6 +449,7 @@ interaptiv-mr2,
 m5100,
 m5101,
 p5600,
+m6201,
 5kc,
 5kf,
 20kc,
diff --git a/gas/testsuite/gas/mips/elf_mach_6201.d b/gas/testsuite/gas/mips/elf_mach_6201.d
new file mode 100644
index 00000000000..7a12a04d70f
--- /dev/null
+++ b/gas/testsuite/gas/mips/elf_mach_6201.d
@@ -0,0 +1,22 @@
+#readelf: -Ah
+#name: ELF m6201 markings
+#as: -32 -march=m6201
+#source: empty.s
+
+ELF Header:
+#...
+  Flags: +0x9......., .*mips32r6.*
+#...
+
+MIPS ABI Flags Version: 0
+
+ISA: MIPS32r6
+GPR size: 32
+CPR1 size: 64
+CPR2 size: 0
+FP ABI: .*
+ISA Extension: None
+ASEs:
+	MCU \(MicroController\) ASE
+FLAGS 1: .*
+FLAGS 2: .*
diff --git a/gas/testsuite/gas/mips/mips.exp b/gas/testsuite/gas/mips/mips.exp
index 4f9ac01f21d..5c863133704 100644
--- a/gas/testsuite/gas/mips/mips.exp
+++ b/gas/testsuite/gas/mips/mips.exp
@@ -1214,6 +1214,7 @@ if { [istarget mips*-*-vxworks*] } {
     run_dump_test "elf_mach_p6600"
     run_dump_test "elf_mach_i6400"
     run_dump_test "elf_mach_i6500"
+    run_dump_test "elf_mach_6201"
 
     run_dump_test "mips-gp32-fp32-pic"
     run_dump_test "mips-gp32-fp64-pic"
-- 
2.34.1


More information about the Binutils mailing list