Skip to content

Commit bdc8beb

Browse files
Matthew FortuneFaraz Shahbazker
authored andcommitted
[MIPS] Add i6500 CPU and fix i6400 default ASEs
gas/ * config/tc-mips.c (mips_cpu_info_table): Add i6500. Update default ASEs for i6400. * doc/c-mips.texi (-march): Document i6500. * testsuite/gas/mips/elf_mach_i6400.d: New test. * testsuite/gas/mips/elf_mach_i6500.d: New test. * testsuite/gas/mips/mips.exp: Run the new tests.
1 parent 3315614 commit bdc8beb

File tree

6 files changed

+63
-1
lines changed

6 files changed

+63
-1
lines changed

gas/ChangeLog

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
2019-04-09 Matthew Fortune <[email protected]>
2+
3+
* config/tc-mips.c (mips_cpu_info_table): Add i6500. Update
4+
default ASEs for i6400.
5+
* doc/c-mips.texi (-march): Document i6500.
6+
* testsuite/gas/mips/elf_mach_i6400.d: New test.
7+
* testsuite/gas/mips/elf_mach_i6500.d: New test.
8+
* testsuite/gas/mips/mips.exp: Run the new tests.
9+
110
2019-04-09 Matthew Fortune <[email protected]>
211

312
* config/tc-mips.c (mips_set_options) <init_ase>: New field.

gas/config/tc-mips.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20018,7 +20018,9 @@ static const struct mips_cpu_info mips_cpu_info_table[] =
2001820018
{ "xlp", 0, 0, ISA_MIPS64R2, CPU_XLR },
2001920019

2002020020
/* MIPS 64 Release 6. */
20021-
{ "i6400", 0, ASE_MSA, ISA_MIPS64R6, CPU_MIPS64R6},
20021+
{ "i6400", 0, ASE_VIRT | ASE_MSA, ISA_MIPS64R6, CPU_MIPS64R6},
20022+
{ "i6500", 0, ASE_VIRT | ASE_MSA | ASE_CRC | ASE_GINV,
20023+
ISA_MIPS64R6, CPU_MIPS64R6},
2002220024
{ "p6600", 0, ASE_VIRT | ASE_MSA, ISA_MIPS64R6, CPU_MIPS64R6},
2002320025

2002420026
/* End marker. */

gas/doc/c-mips.texi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,7 @@ p5600,
449449
sb1,
450450
sb1a,
451451
i6400,
452+
i6500,
452453
p6600,
453454
loongson2e,
454455
loongson2f,
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#readelf: -Ah
2+
#name: ELF i6400 markings
3+
#as: -64 -march=i6400
4+
#source: empty.s
5+
6+
ELF Header:
7+
#...
8+
Flags: +0xa......., .*mips64r6.*
9+
#...
10+
11+
MIPS ABI Flags Version: 0
12+
13+
ISA: MIPS64r6
14+
GPR size: 64
15+
CPR1 size: 128
16+
CPR2 size: 0
17+
FP ABI: .*
18+
ISA Extension: None
19+
ASEs:
20+
VZ ASE
21+
MSA ASE
22+
FLAGS 1: .*
23+
FLAGS 2: .*
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#readelf: -Ah
2+
#name: ELF i6500 markings
3+
#as: -64 -march=i6500
4+
#source: empty.s
5+
6+
ELF Header:
7+
#...
8+
Flags: +0xa......., .*mips64r6.*
9+
#...
10+
11+
MIPS ABI Flags Version: 0
12+
13+
ISA: MIPS64r6
14+
GPR size: 64
15+
CPR1 size: 128
16+
CPR2 size: 0
17+
FP ABI: .*
18+
ISA Extension: None
19+
ASEs:
20+
VZ ASE
21+
MSA ASE
22+
CRC ASE
23+
GINV ASE
24+
FLAGS 1: .*
25+
FLAGS 2: .*

gas/testsuite/gas/mips/mips.exp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1152,6 +1152,8 @@ if { [istarget mips*-*-vxworks*] } {
11521152
run_dump_test "elf_mach_5900"
11531153
run_dump_test "elf_mach_interaptiv-mr2"
11541154
run_dump_test "elf_mach_p6600"
1155+
run_dump_test "elf_mach_i6400"
1156+
run_dump_test "elf_mach_i6500"
11551157

11561158
run_dump_test "mips-gp32-fp32-pic"
11571159
run_dump_test "mips-gp32-fp64-pic"

0 commit comments

Comments
 (0)