From 8750f9a29176f0ac67b775966c4fc190be8ac42e Mon Sep 17 00:00:00 2001 From: Daniel Sanders Date: Thu, 3 Apr 2014 13:21:51 +0000 Subject: [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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205537 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Mips/MipsInstrFormats.td | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lib/Target/Mips/MipsInstrFormats.td') diff --git a/lib/Target/Mips/MipsInstrFormats.td b/lib/Target/Mips/MipsInstrFormats.td index 38fac88604..e4405abe90 100644 --- a/lib/Target/Mips/MipsInstrFormats.td +++ b/lib/Target/Mips/MipsInstrFormats.td @@ -818,3 +818,14 @@ class CMov_F_F_FM fmt, bit tf> : StdArch { let Inst{10-6} = fd; let Inst{5-0} = 0x11; } + +class BARRIER_FM 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 +} -- cgit v1.2.3