summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorPetar Jovanovic <petar.jovanovic@imgtec.com>2017-09-13 14:09:13 +0000
committerPetar Jovanovic <petar.jovanovic@imgtec.com>2017-09-13 14:09:13 +0000
commit50e068158b1de0c1230a05514b7ab816aad33f15 (patch)
tree12177c36fe67314764c70076cefa57ac1ba5d1c5 /llvm/lib/Target
parent4eb2a96e7f74e7c2b1ae8b8121194f2f319ed032 (diff)
downloadbcm5719-llvm-50e068158b1de0c1230a05514b7ab816aad33f15.tar.gz
bcm5719-llvm-50e068158b1de0c1230a05514b7ab816aad33f15.zip
[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 llvm-svn: 313149
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/Mips/Mips64InstrInfo.td2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/Mips/Mips64InstrInfo.td b/llvm/lib/Target/Mips/Mips64InstrInfo.td
index f367ff03a96..5082e4bab62 100644
--- a/llvm/lib/Target/Mips/Mips64InstrInfo.td
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud