From 089741479be03b625f5a8cc52e750b4e532338c6 Mon Sep 17 00:00:00 2001 From: Akira Hatanaka Date: Thu, 25 Apr 2013 01:21:25 +0000 Subject: [mips] Add definitions of micromips load and store instructions. Patch by Zoran Jovanovic. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180241 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/Mips/MicroMipsInstrFormats.td | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'lib/Target/Mips/MicroMipsInstrFormats.td') diff --git a/lib/Target/Mips/MicroMipsInstrFormats.td b/lib/Target/Mips/MicroMipsInstrFormats.td index 63ecc99550..665b4d2d8b 100644 --- a/lib/Target/Mips/MicroMipsInstrFormats.td +++ b/lib/Target/Mips/MicroMipsInstrFormats.td @@ -98,3 +98,15 @@ class SRLV_FM_MM funct, bit rotate> : MMArch { let Inst{10} = rotate; let Inst{9-0} = funct; } + +class LW_FM_MM op> : MMArch { + bits<5> rt; + bits<21> addr; + + bits<32> Inst; + + let Inst{31-26} = op; + let Inst{25-21} = rt; + let Inst{20-16} = addr{20-16}; + let Inst{15-0} = addr{15-0}; +} -- cgit v1.2.3