summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/MipsMSAInstrFormats.td
diff options
context:
space:
mode:
authorMatheus Almeida <matheus.almeida@imgtec.com>2013-10-14 12:57:18 +0000
committerMatheus Almeida <matheus.almeida@imgtec.com>2013-10-14 12:57:18 +0000
commit5be0cd87205cf02404086077a8b0a9b1aecfc409 (patch)
treed4a97ed2a2f50a4c98393540745ac3244f817339 /llvm/lib/Target/Mips/MipsMSAInstrFormats.td
parent7d65ea76eae2d0a44432417f828e173fcd8b6257 (diff)
downloadbcm5719-llvm-5be0cd87205cf02404086077a8b0a9b1aecfc409.tar.gz
bcm5719-llvm-5be0cd87205cf02404086077a8b0a9b1aecfc409.zip
[mips][msa] Direct Object Emission support for VEC instructions.
List of instructions: and.v, bmnz.v, bmz.v, bsel.v, nor.v, or.v, xor.v. llvm-svn: 192588
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 502bc6b681f..701bbdd5fea 100644
--- a/llvm/lib/Target/Mips/MipsMSAInstrFormats.td
+++ b/llvm/lib/Target/Mips/MipsMSAInstrFormats.td
@@ -271,7 +271,14 @@ class MSA_I10_FMT<bits<3> major, bits<2> df, bits<6> minor>: MSAInst {
}
class MSA_VEC_FMT<bits<5> major, bits<6> minor>: MSAInst {
+ bits<5> wt;
+ bits<5> ws;
+ bits<5> wd;
+
let Inst{25-21} = major;
+ let Inst{20-16} = wt;
+ let Inst{15-11} = ws;
+ let Inst{10-6} = wd;
let Inst{5-0} = minor;
}
OpenPOWER on IntegriCloud