summaryrefslogtreecommitdiff
path: root/lib/Target/Mips/MipsMSAInstrFormats.td
diff options
context:
space:
mode:
authorMatheus Almeida <matheus.almeida@imgtec.com>2013-10-21 11:47:56 +0000
committerMatheus Almeida <matheus.almeida@imgtec.com>2013-10-21 11:47:56 +0000
commitf89f66e61b26974bb73b5832d5825091873b51dc (patch)
tree780817da9685883ffa66c52a6630622a09e64797 /lib/Target/Mips/MipsMSAInstrFormats.td
parent6701bb7283747b00bc814b1db784fdbbe03644a1 (diff)
downloadllvm-f89f66e61b26974bb73b5832d5825091873b51dc.tar.gz
llvm-f89f66e61b26974bb73b5832d5825091873b51dc.tar.bz2
llvm-f89f66e61b26974bb73b5832d5825091873b51dc.tar.xz
[mips][msa] Fix definition of SLD instruction.
The second parameter of the SLD intrinsic is the number of columns (GPR) to slide left the source array. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193076 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsMSAInstrFormats.td')
-rw-r--r--lib/Target/Mips/MipsMSAInstrFormats.td13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/Target/Mips/MipsMSAInstrFormats.td b/lib/Target/Mips/MipsMSAInstrFormats.td
index 9a3a8cdb61..c9b3745170 100644
--- a/lib/Target/Mips/MipsMSAInstrFormats.td
+++ b/lib/Target/Mips/MipsMSAInstrFormats.td
@@ -132,6 +132,19 @@ class MSA_3RF_FMT<bits<4> major, bits<1> df, bits<6> minor>: MSAInst {
let Inst{5-0} = minor;
}
+class MSA_3R_INDEX_FMT<bits<3> major, bits<2> df, bits<6> minor>: MSAInst {
+ bits<5> rt;
+ bits<5> ws;
+ bits<5> wd;
+
+ let Inst{25-23} = major;
+ let Inst{22-21} = df;
+ let Inst{20-16} = rt;
+ let Inst{15-11} = ws;
+ let Inst{10-6} = wd;
+ let Inst{5-0} = minor;
+}
+
class MSA_ELM_FMT<bits<10> major, bits<6> minor>: MSAInst {
let Inst{25-16} = major;
let Inst{5-0} = minor;