diff options
| author | Joerg Sonnenberger <joerg@bec.de> | 2014-08-05 15:45:15 +0000 |
|---|---|---|
| committer | Joerg Sonnenberger <joerg@bec.de> | 2014-08-05 15:45:15 +0000 |
| commit | c4ce42980eb1b8ae685a708019ccdcc5ff47b454 (patch) | |
| tree | bd4a40205ad2a96d1dfbfa284e970059d783d8a2 /llvm/lib/Target/PowerPC | |
| parent | a5d954b187be1e00de5eae34052d07791110a575 (diff) | |
| download | bcm5719-llvm-c4ce42980eb1b8ae685a708019ccdcc5ff47b454.tar.gz bcm5719-llvm-c4ce42980eb1b8ae685a708019ccdcc5ff47b454.zip | |
Add accessors for the PPC 403 bank registers.
llvm-svn: 214875
Diffstat (limited to 'llvm/lib/Target/PowerPC')
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCInstrInfo.td | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.td b/llvm/lib/Target/PowerPC/PPCInstrInfo.td index 5a4df7ac154..f3f1870d5ec 100644 --- a/llvm/lib/Target/PowerPC/PPCInstrInfo.td +++ b/llvm/lib/Target/PowerPC/PPCInstrInfo.td @@ -3304,6 +3304,15 @@ foreach BATR = 0-3 in { Requires<[IsPPC6xx]>; } +foreach BR = 0-7 in { + def : InstAlias<"mfbr"#BR#" $Rx", + (MFDCR gprc:$Rx, !add(BR, 0x80))>, + Requires<[IsPPC4xx]>; + def : InstAlias<"mtbr"#BR#" $Rx", + (MTDCR gprc:$Rx, !add(BR, 0x80))>, + Requires<[IsPPC4xx]>; +} + def : InstAlias<"mtdccr $Rx", (MTSPR 1018, gprc:$Rx)>, Requires<[IsPPC4xx]>; def : InstAlias<"mfdccr $Rx", (MFSPR gprc:$Rx, 1018)>, Requires<[IsPPC4xx]>; |

