From 9f471750fa6f34120d4758d5d14f54f899e34a54 Mon Sep 17 00:00:00 2001 From: Zoran Jovanovic Date: Thu, 7 Nov 2013 14:35:24 +0000 Subject: Support for microMIPS trap instructions 1. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194205 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Mips/MicroMipsInstrFormats.td | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'lib/Target/Mips/MicroMipsInstrFormats.td') diff --git a/lib/Target/Mips/MicroMipsInstrFormats.td b/lib/Target/Mips/MicroMipsInstrFormats.td index 4981608bf2..8b7fb8159e 100644 --- a/lib/Target/Mips/MicroMipsInstrFormats.td +++ b/lib/Target/Mips/MicroMipsInstrFormats.td @@ -275,3 +275,18 @@ class BGEZAL_FM_MM funct> : MMArch { let Inst{20-16} = rs; let Inst{15-0} = offset; } + +class TEQ_FM_MM funct> : MMArch { + bits<5> rs; + bits<5> rt; + bits<4> code_; + + bits<32> Inst; + + let Inst{31-26} = 0x00; + let Inst{25-21} = rt; + let Inst{20-16} = rs; + let Inst{15-12} = code_; + let Inst{11-6} = funct; + let Inst{5-0} = 0x3c; +} -- cgit v1.2.3