[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:
Vasileios Kalintiris 2014-11-11 11:22:39 +00:00
parent d6548ad013
commit b001cb6423
2 changed files with 8 additions and 0 deletions

View File

@ -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;

View File

@ -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