Skip to content

Commit

Permalink
Add mfrtcu and mfrtcl instructions
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215109 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
jsonn committed Aug 7, 2014
1 parent 5b1fba4 commit d94b6e8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Target/PowerPC/PPCInstrInfo.td
Original file line number Diff line number Diff line change
Expand Up @@ -3226,6 +3226,9 @@ def : InstAlias<"crnot $bx, $by", (CRNOR crbitrc:$bx, crbitrc:$by, crbitrc:$by)>
def : InstAlias<"mtxer $Rx", (MTSPR 1, gprc:$Rx)>;
def : InstAlias<"mfxer $Rx", (MFSPR gprc:$Rx, 1)>;

def : InstAlias<"mfrtcu $Rx", (MFSPR gprc:$Rx, 4)>;
def : InstAlias<"mfrtcl $Rx", (MFSPR gprc:$Rx, 5)>;

def : InstAlias<"mtdscr $Rx", (MTSPR 17, gprc:$Rx)>;
def : InstAlias<"mfdscr $Rx", (MFSPR gprc:$Rx, 17)>;

Expand Down
6 changes: 6 additions & 0 deletions test/MC/PowerPC/ppc64-encoding-ext.s
Original file line number Diff line number Diff line change
Expand Up @@ -3419,6 +3419,12 @@
# CHECK-BE: mfspr 2, 1 # encoding: [0x7c,0x41,0x02,0xa6]
# CHECK-LE: mfspr 2, 1 # encoding: [0xa6,0x02,0x41,0x7c]
mfxer 2
# CHECK-BE: mfspr 2, 4 # encoding: [0x7c,0x44,0x02,0xa6]
# CHECK-LE: mfspr 2, 4 # encoding: [0xa6,0x02,0x44,0x7c]
mfrtcu 2
# CHECK-BE: mfspr 2, 5 # encoding: [0x7c,0x45,0x02,0xa6]
# CHECK-LE: mfspr 2, 5 # encoding: [0xa6,0x02,0x45,0x7c]
mfrtcl 2
# CHECK-BE: mtspr 17, 2 # encoding: [0x7c,0x51,0x03,0xa6]
# CHECK-LE: mtspr 17, 2 # encoding: [0xa6,0x03,0x51,0x7c]
mtdscr 2
Expand Down

0 comments on commit d94b6e8

Please sign in to comment.