From f89f66e61b26974bb73b5832d5825091873b51dc Mon Sep 17 00:00:00 2001 From: Matheus Almeida Date: Mon, 21 Oct 2013 11:47:56 +0000 Subject: [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 --- lib/Target/Mips/MipsMSAInstrFormats.td | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'lib/Target/Mips/MipsMSAInstrFormats.td') 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 major, bits<1> df, bits<6> minor>: MSAInst { let Inst{5-0} = minor; } +class MSA_3R_INDEX_FMT 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 major, bits<6> minor>: MSAInst { let Inst{25-16} = major; let Inst{5-0} = minor; -- cgit v1.2.3