summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/MipsInstrFormats.td
diff options
context:
space:
mode:
authorDaniel Sanders <daniel.sanders@imgtec.com>2014-04-03 13:21:51 +0000
committerDaniel Sanders <daniel.sanders@imgtec.com>2014-04-03 13:21:51 +0000
commit442f1a12f186408bd8dfb15621c7cf1a94b71b69 (patch)
tree0e540d29eb56f0dbe889fd900758f618d7e6aacc /llvm/lib/Target/Mips/MipsInstrFormats.td
parent749763eaf79d08d930e31c5b677ed7937193f18a (diff)
downloadbcm5719-llvm-442f1a12f186408bd8dfb15621c7cf1a94b71b69.tar.gz
bcm5719-llvm-442f1a12f186408bd8dfb15621c7cf1a94b71b69.zip
[mips] Implement ehb, ssnop, and pause in assembler
Summary: Add negative tests for pause Reviewers: matheusalmeida Reviewed By: matheusalmeida Differential Revision: http://llvm-reviews.chandlerc.com/D3246 llvm-svn: 205537
Diffstat (limited to 'llvm/lib/Target/Mips/MipsInstrFormats.td')
-rw-r--r--llvm/lib/Target/Mips/MipsInstrFormats.td11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/MipsInstrFormats.td b/llvm/lib/Target/Mips/MipsInstrFormats.td
index 38fac886048..e4405abe908 100644
--- a/llvm/lib/Target/Mips/MipsInstrFormats.td
+++ b/llvm/lib/Target/Mips/MipsInstrFormats.td
@@ -818,3 +818,14 @@ class CMov_F_F_FM<bits<5> fmt, bit tf> : StdArch {
let Inst{10-6} = fd;
let Inst{5-0} = 0x11;
}
+
+class BARRIER_FM<bits<5> op> : StdArch {
+ bits<32> Inst;
+
+ let Inst{31-26} = 0; // SPECIAL
+ let Inst{25-21} = 0;
+ let Inst{20-16} = 0; // rt = 0
+ let Inst{15-11} = 0; // rd = 0
+ let Inst{10-6} = op; // Operation
+ let Inst{5-0} = 0; // SLL
+}
OpenPOWER on IntegriCloud