mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-23 12:40:17 +00:00
Add mfasr and mtasr
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215110 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d94b6e8895
commit
7ad7c75048
@ -3360,6 +3360,9 @@ def : InstAlias<"subc. $rA, $rB, $rC", (SUBFC8o g8rc:$rA, g8rc:$rC, g8rc:$rB)>;
|
||||
def : InstAlias<"mtmsrd $RS", (MTMSRD gprc:$RS, 0)>;
|
||||
def : InstAlias<"mtmsr $RS", (MTMSR gprc:$RS, 0)>;
|
||||
|
||||
def : InstAlias<"mfasr $RT", (MFSPR gprc:$RT, 280)>;
|
||||
def : InstAlias<"mtasr $RT", (MTSPR 280, gprc:$RT)>;
|
||||
|
||||
foreach SPRG = 0-3 in {
|
||||
def : InstAlias<"mfsprg $RT, "#SPRG, (MFSPR gprc:$RT, !add(SPRG, 272))>;
|
||||
def : InstAlias<"mfsprg"#SPRG#" $RT", (MFSPR gprc:$RT, !add(SPRG, 272))>;
|
||||
|
@ -3626,3 +3626,10 @@
|
||||
# CHECK-BE: rfid # encoding: [0x4c,0x00,0x00,0x24]
|
||||
# CHECK-LE: rfid # encoding: [0x24,0x00,0x00,0x4c]
|
||||
rfid
|
||||
|
||||
# CHECK-BE: mfspr 2, 280 # encoding: [0x7c,0x58,0x42,0xa6]
|
||||
# CHECK-LE: mfspr 2, 280 # encoding: [0xa6,0x42,0x58,0x7c]
|
||||
mfasr 2
|
||||
# CHECK-BE: mtspr 280, 2 # encoding: [0x7c,0x58,0x43,0xa6]
|
||||
# CHECK-LE: mtspr 280, 2 # encoding: [0xa6,0x43,0x58,0x7c]
|
||||
mtasr 2
|
||||
|
Loading…
Reference in New Issue
Block a user