summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2016-06-09 23:27:48 +0000
committerEric Christopher <echristo@gmail.com>2016-06-09 23:27:48 +0000
commit1dbb23e1629509112f1da3eb74174307c696209f (patch)
tree2cd8a28ccb54975a42e5344ad582ebabc19ea80b /llvm/lib/Target/PowerPC
parente2bd9a32bcc8b88ec62de40b65a0fb6a03ebad3c (diff)
downloadbcm5719-llvm-1dbb23e1629509112f1da3eb74174307c696209f.tar.gz
bcm5719-llvm-1dbb23e1629509112f1da3eb74174307c696209f.zip
Add aliases for mfvrsave/mtvrsave.
Update a test as we're now going to emit it for easier reading of generated assembly as well. llvm-svn: 272339
Diffstat (limited to 'llvm/lib/Target/PowerPC')
-rw-r--r--llvm/lib/Target/PowerPC/PPCInstrInfo.td4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.td b/llvm/lib/Target/PowerPC/PPCInstrInfo.td
index ad382341ed5..e78a3ba580b 100644
--- a/llvm/lib/Target/PowerPC/PPCInstrInfo.td
+++ b/llvm/lib/Target/PowerPC/PPCInstrInfo.td
@@ -2345,6 +2345,10 @@ let isCodeGenOnly = 1 in {
PPC970_DGroup_First, PPC970_Unit_FXU;
}
+// Aliases for mtvrsave/mfvrsave to mfspr/mtspr.
+def : InstAlias<"mtvrsave $rS", (MTVRSAVE gprc:$rS)>;
+def : InstAlias<"mfvrsave $rS", (MFVRSAVE gprc:$rS)>;
+
// SPILL_VRSAVE - Indicate that we're dumping the VRSAVE register,
// so we'll need to scavenge a register for it.
let mayStore = 1 in
OpenPOWER on IntegriCloud