[PATCH] D34348: [mips] Allow $AT to be used as a register name
Stanislav Ocovaj via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 21 08:07:33 PDT 2017
stanislav.ocovaj updated this revision to Diff 103386.
https://reviews.llvm.org/D34348
Files:
lib/Target/Mips/AsmParser/MipsAsmParser.cpp
test/MC/Mips/mips-register-names-o32.s
test/MC/Mips/mips64-register-names-o32.s
Index: test/MC/Mips/mips64-register-names-o32.s
===================================================================
--- test/MC/Mips/mips64-register-names-o32.s
+++ test/MC/Mips/mips64-register-names-o32.s
@@ -8,6 +8,7 @@
.set noat
addiu $zero, $zero, 0 # CHECK: encoding: [0x24,0x00,0x00,0x00]
addiu $at, $zero, 0 # CHECK: encoding: [0x24,0x01,0x00,0x00]
+addiu $AT, $zero, 0 # CHECK: encoding: [0x24,0x01,0x00,0x00]
addiu $v0, $zero, 0 # CHECK: encoding: [0x24,0x02,0x00,0x00]
addiu $v1, $zero, 0 # CHECK: encoding: [0x24,0x03,0x00,0x00]
addiu $a0, $zero, 0 # CHECK: encoding: [0x24,0x04,0x00,0x00]
Index: test/MC/Mips/mips-register-names-o32.s
===================================================================
--- test/MC/Mips/mips-register-names-o32.s
+++ test/MC/Mips/mips-register-names-o32.s
@@ -7,6 +7,7 @@
.set noat
addiu $zero, $zero, 0 # CHECK: encoding: [0x24,0x00,0x00,0x00]
addiu $at, $zero, 0 # CHECK: encoding: [0x24,0x01,0x00,0x00]
+addiu $AT, $zero, 0 # CHECK: encoding: [0x24,0x01,0x00,0x00]
addiu $v0, $zero, 0 # CHECK: encoding: [0x24,0x02,0x00,0x00]
addiu $v1, $zero, 0 # CHECK: encoding: [0x24,0x03,0x00,0x00]
addiu $a0, $zero, 0 # CHECK: encoding: [0x24,0x04,0x00,0x00]
Index: lib/Target/Mips/AsmParser/MipsAsmParser.cpp
===================================================================
--- lib/Target/Mips/AsmParser/MipsAsmParser.cpp
+++ lib/Target/Mips/AsmParser/MipsAsmParser.cpp
@@ -5106,7 +5106,7 @@
CC = StringSwitch<unsigned>(Name)
.Case("zero", 0)
- .Case("at", 1)
+ .Cases("at", "AT", 1)
.Case("a0", 4)
.Case("a1", 5)
.Case("a2", 6)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34348.103386.patch
Type: text/x-patch
Size: 1675 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170621/df7e3f5d/attachment.bin>
More information about the llvm-commits
mailing list