diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:41:05 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:41:05 +0000 |
| commit | 01095a5d43bbfde13731688ddcf6048ebb8b7721 (patch) | |
| tree | 4def12e759965de927d963ac65840d663ef9d1ea /lib/Target/Mips/MicroMipsInstrFormats.td | |
| parent | f0f4822ed4b66e3579e92a89f368f8fb860e218e (diff) | |
Notes
Diffstat (limited to 'lib/Target/Mips/MicroMipsInstrFormats.td')
| -rw-r--r-- | lib/Target/Mips/MicroMipsInstrFormats.td | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/Target/Mips/MicroMipsInstrFormats.td b/lib/Target/Mips/MicroMipsInstrFormats.td index b736367ee5fa..79ef6482180d 100644 --- a/lib/Target/Mips/MicroMipsInstrFormats.td +++ b/lib/Target/Mips/MicroMipsInstrFormats.td @@ -278,7 +278,6 @@ class MOVEP_FM_MM16 { class MMArch { string Arch = "micromips"; - list<dag> Pattern = []; } class ADD_FM_MM<bits<6> op, bits<10> funct> : MMArch { @@ -380,13 +379,15 @@ class SRLV_FM_MM<bits<10> funct, bit rotate> : MMArch { class LW_FM_MM<bits<6> op> : MMArch { bits<5> rt; bits<21> addr; + bits<5> base = addr{20-16}; + bits<16> offset = addr{15-0}; 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}; + let Inst{20-16} = base; + let Inst{15-0} = offset; } class POOL32C_LHUE_FM_MM<bits<6> op, bits<4> fmt, bits<3> funct> : MMArch { @@ -674,7 +675,7 @@ class TEQI_FM_MM<bits<5> funct> : MMArch { let Inst{15-0} = imm16; } -class LL_FM_MM<bits<4> funct> { +class LL_FM_MM<bits<4> funct> : MMArch { bits<5> rt; bits<21> addr; |
