mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-07 12:30:57 +00:00
[mips] add assembler support for .set arch=octeon
This patch enables assembler support for .set arch=octeon. It will fix issues with inline assembler when this directive is used. Patch by Strahinja Petrovic. Differential Revision: http://reviews.llvm.org/D18548 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@266081 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e3315093af
commit
7655423622
@ -5350,7 +5350,7 @@ bool MipsAsmParser::parseSetArchDirective() {
|
||||
.Case("mips64r3", "mips64r3")
|
||||
.Case("mips64r5", "mips64r5")
|
||||
.Case("mips64r6", "mips64r6")
|
||||
.Case("cnmips", "cnmips")
|
||||
.Case("octeon", "cnmips")
|
||||
.Case("r4000", "mips3") // This is an implementation of Mips3.
|
||||
.Default("");
|
||||
|
||||
|
@ -36,7 +36,8 @@
|
||||
drotr32 $1, $14, 15
|
||||
.set arch=mips64r6
|
||||
mod $2, $4, $6
|
||||
.set arch=cnmips
|
||||
.set arch=octeon
|
||||
baddu $9, $6, $7
|
||||
.set arch=r4000
|
||||
dadd $2, $2, $2
|
||||
|
||||
@ -62,6 +63,7 @@
|
||||
# CHECK: drotr32 $1, $14, 15
|
||||
# CHECK: .set arch=mips64r6
|
||||
# CHECK: mod $2, $4, $6
|
||||
# CHECK: .set arch=cnmips
|
||||
# CHECK: .set arch=octeon
|
||||
# CHECK: baddu $9, $6, $7
|
||||
# CHECK: .set arch=r4000
|
||||
# CHECK: dadd $2, $2, $2
|
||||
|
Loading…
Reference in New Issue
Block a user