mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-12 13:30:51 +00:00
[mips] Add hardware register name "hwr_ulr" ($29)
The canonical name when printing assembly is still $29. The reason is that GAS does not accept "$hwr_ulr" at the moment. This addresses the comments from r221307, which reverted the original commit r221299. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221685 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d6548ad013
commit
b001cb6423
@ -1821,6 +1821,7 @@ int MipsAsmParser::matchHWRegsRegisterName(StringRef Name) {
|
||||
.Case("hwr_synci_step", 1)
|
||||
.Case("hwr_cc", 2)
|
||||
.Case("hwr_ccres", 3)
|
||||
.Case("hwr_ulr", 29)
|
||||
.Default(-1);
|
||||
|
||||
return CC;
|
||||
|
@ -175,11 +175,18 @@
|
||||
# CHECK-NEXT: rdhwr $4, $28
|
||||
# CHECK-NEXT: .set pop # encoding: [0x7c,0x04,0xe0,0x3b]
|
||||
rdhwr $a0,$28
|
||||
|
||||
# CHECK: .set push
|
||||
# CHECK-NEXT: .set mips32r2
|
||||
# CHECK-NEXT: rdhwr $4, $29
|
||||
# CHECK-NEXT: .set pop # encoding: [0x7c,0x04,0xe8,0x3b]
|
||||
rdhwr $a0,$29
|
||||
# CHECK: .set push
|
||||
# CHECK-NEXT: .set mips32r2
|
||||
# CHECK-NEXT: rdhwr $4, $29
|
||||
# CHECK-NEXT: .set pop # encoding: [0x7c,0x04,0xe8,0x3b]
|
||||
rdhwr $a0,$hwr_ulr
|
||||
|
||||
# CHECK: .set push
|
||||
# CHECK-NEXT: .set mips32r2
|
||||
# CHECK-NEXT: rdhwr $4, $30
|
||||
|
Loading…
Reference in New Issue
Block a user