summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/MipsMSAInstrFormats.td
diff options
context:
space:
mode:
authorJack Carter <jack.carter@imgtec.com>2013-09-26 21:31:43 +0000
committerJack Carter <jack.carter@imgtec.com>2013-09-26 21:31:43 +0000
commitcb8b40b08d38bb4ce4b78547cd91b67d9e042abd (patch)
tree563555c8f8210139f592871c0e38f6be03deb451 /llvm/lib/Target/Mips/MipsMSAInstrFormats.td
parent142ec8283d839d82e12495f39f6399bec04e085d (diff)
downloadbcm5719-llvm-cb8b40b08d38bb4ce4b78547cd91b67d9e042abd.tar.gz
bcm5719-llvm-cb8b40b08d38bb4ce4b78547cd91b67d9e042abd.zip
[mips][msa] Direct Object Emission for 3RF instructions.
Patch by Matheus Almeida llvm-svn: 191461
Diffstat (limited to 'llvm/lib/Target/Mips/MipsMSAInstrFormats.td')
-rw-r--r--llvm/lib/Target/Mips/MipsMSAInstrFormats.td7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/MipsMSAInstrFormats.td b/llvm/lib/Target/Mips/MipsMSAInstrFormats.td
index ddd3110bf99..56678904db5 100644
--- a/llvm/lib/Target/Mips/MipsMSAInstrFormats.td
+++ b/llvm/lib/Target/Mips/MipsMSAInstrFormats.td
@@ -76,8 +76,15 @@ class MSA_3R_FMT<bits<3> major, bits<2> df, bits<6> minor>: MSAInst {
}
class MSA_3RF_FMT<bits<4> major, bits<1> df, bits<6> minor>: MSAInst {
+ bits<5> wt;
+ bits<5> ws;
+ bits<5> wd;
+
let Inst{25-22} = major;
let Inst{21} = df;
+ let Inst{20-16} = wt;
+ let Inst{15-11} = ws;
+ let Inst{10-6} = wd;
let Inst{5-0} = minor;
}
OpenPOWER on IntegriCloud