File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
lib/Target/Mips/AsmParser Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -7175,8 +7175,8 @@ bool MipsAsmParser::parseSetArchDirective() {
7175
7175
return reportParseError (" unexpected token, expected equals sign" );
7176
7176
7177
7177
Parser.Lex ();
7178
- StringRef Arch;
7179
- if (Parser. parseIdentifier (Arch ))
7178
+ StringRef Arch = getParser (). parseStringToEndOfStatement (). trim () ;
7179
+ if (Arch. empty ( ))
7180
7180
return reportParseError (" expected arch identifier" );
7181
7181
7182
7182
StringRef ArchFeatureName =
@@ -7197,6 +7197,7 @@ bool MipsAsmParser::parseSetArchDirective() {
7197
7197
.Case (" mips64r5" , " mips64r5" )
7198
7198
.Case (" mips64r6" , " mips64r6" )
7199
7199
.Case (" octeon" , " cnmips" )
7200
+ .Case (" octeon+" , " cnmipsp" )
7200
7201
.Case (" r4000" , " mips3" ) // This is an implementation of Mips3.
7201
7202
.Default (" " );
7202
7203
Original file line number Diff line number Diff line change 38
38
mod $2 , $4 , $6
39
39
.set arch = octeon
40
40
baddu $9 , $6 , $7
41
+ .set arch = octeon+
42
+ saa $2 , ($5 )
41
43
.set arch = r4000
42
44
dadd $2 , $2 , $2
43
45
65
67
# CHECK: mod $2, $4, $6
66
68
# CHECK: .set arch=octeon
67
69
# CHECK: baddu $9, $6, $7
70
+ # CHECK: .set arch=octeon+
71
+ # CHECK: saa $2, ($5)
68
72
# CHECK: .set arch=r4000
69
73
# CHECK: dadd $2, $2, $2
You can’t perform that action at this time.
0 commit comments