diff options
author | Petar Jovanovic <petar.jovanovic@imgtec.com> | 2017-09-13 14:09:13 +0000 |
---|---|---|
committer | Petar Jovanovic <petar.jovanovic@imgtec.com> | 2017-09-13 14:09:13 +0000 |
commit | 66341b5d6a0bb2b2fb499e6f35141c549c582b7f (patch) | |
tree | c71bdbaec2eaa495a4ca8f4eefbd18a3cc7ad828 /lib/Target/Mips | |
parent | db48628bdf804d8ed4aa36a88dec8b824135118a (diff) | |
download | llvm-66341b5d6a0bb2b2fb499e6f35141c549c582b7f.tar.gz |
[mips] correct operand range for DINSM instruction
This patch corrects the definition of the DINSM instruction.
Specification for DINSM instruction for Mips64 says that size operand should
be 2 <= size <= 64, but it is defined as uimm5_inssize_plus1 which gives
range of 1 .. 32.
Patch by Aleksandar Beserminji.
Differential Revision: https://reviews.llvm.org/D37683
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313149 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips')
-rw-r--r-- | lib/Target/Mips/Mips64InstrInfo.td | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/Mips/Mips64InstrInfo.td b/lib/Target/Mips/Mips64InstrInfo.td index f367ff03a96b..5082e4bab622 100644 --- a/lib/Target/Mips/Mips64InstrInfo.td +++ b/lib/Target/Mips/Mips64InstrInfo.td @@ -331,7 +331,7 @@ let AdditionalPredicates = [NotInMicroMips] in { EXT_FM<7>, ISA_MIPS64R2; def DINSU : InsBase<"dinsu", GPR64Opnd, uimm5_plus32, uimm5_inssize_plus1>, EXT_FM<6>, ISA_MIPS64R2; - def DINSM : InsBase<"dinsm", GPR64Opnd, uimm5, uimm5_inssize_plus1>, + def DINSM : InsBase<"dinsm", GPR64Opnd, uimm5, uimm_range_2_64>, EXT_FM<5>, ISA_MIPS64R2; } |