mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Add mtpid/mfpid for BookE.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214363 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
187d75c112
commit
cadb2a8a32
@ -3191,6 +3191,9 @@ def : InstAlias<"mfcfar $Rx", (MFSPR gprc:$Rx, 28)>;
|
||||
def : InstAlias<"mtamr $Rx", (MTSPR 29, gprc:$Rx)>;
|
||||
def : InstAlias<"mfamr $Rx", (MFSPR gprc:$Rx, 29)>;
|
||||
|
||||
def : InstAlias<"mtpid $Rx", (MTSPR 48, gprc:$Rx)>, Requires<[IsBookE]>;
|
||||
def : InstAlias<"mfpid $Rx", (MFSPR gprc:$Rx, 48)>, Requires<[IsBookE]>;
|
||||
|
||||
def : InstAlias<"mftb $Rx", (MFTB gprc:$Rx, 268)>;
|
||||
def : InstAlias<"mftbu $Rx", (MFTB gprc:$Rx, 269)>;
|
||||
|
||||
|
@ -3473,6 +3473,12 @@
|
||||
# CHECK-BE: mfspr 2, 29 # encoding: [0x7c,0x5d,0x02,0xa6]
|
||||
# CHECK-LE: mfspr 2, 29 # encoding: [0xa6,0x02,0x5d,0x7c]
|
||||
mfamr 2
|
||||
# CHECK-BE: mtspr 48, 2 # encoding: [0x7c,0x50,0x0b,0xa6]
|
||||
# CHECK-LE: mtspr 48, 2 # encoding: [0xa6,0x0b,0x50,0x7c]
|
||||
mtpid 2
|
||||
# CHECK-BE: mfspr 2, 48 # encoding: [0x7c,0x50,0x0a,0xa6]
|
||||
# CHECK-LE: mfspr 2, 48 # encoding: [0xa6,0x0a,0x50,0x7c]
|
||||
mfpid 2
|
||||
# CHECK-BE: mtlr 2 # encoding: [0x7c,0x48,0x03,0xa6]
|
||||
# CHECK-LE: mtlr 2 # encoding: [0xa6,0x03,0x48,0x7c]
|
||||
mtlr 2
|
||||
|
Loading…
Reference in New Issue
Block a user