summaryrefslogtreecommitdiff
path: root/lib/Target/Mips/MipsInstrInfo.td
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2011-10-17 18:01:00 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2011-10-17 18:01:00 +0000
commita01820a50824bf592d0a2900cf17ae3adfd5575a (patch)
tree828dac2c8557d372d932cccfabb6dc5469c85921 /lib/Target/Mips/MipsInstrInfo.td
parent9904056a7061f6e42d38dd565c23990f0a56e9e1 (diff)
downloadllvm-a01820a50824bf592d0a2900cf17ae3adfd5575a.tar.gz
llvm-a01820a50824bf592d0a2900cf17ae3adfd5575a.tar.bz2
llvm-a01820a50824bf592d0a2900cf17ae3adfd5575a.tar.xz
Add definition of immZExt5_64 and redefine immZExt5 as an ImmLeaf.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142205 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsInstrInfo.td')
-rw-r--r--lib/Target/Mips/MipsInstrInfo.td4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Target/Mips/MipsInstrInfo.td b/lib/Target/Mips/MipsInstrInfo.td
index 06b7de7e8e..507010698c 100644
--- a/lib/Target/Mips/MipsInstrInfo.td
+++ b/lib/Target/Mips/MipsInstrInfo.td
@@ -191,9 +191,7 @@ def immZExt16 : PatLeaf<(imm), [{
}], LO16>;
// shamt field must fit in 5 bits.
-def immZExt5 : PatLeaf<(imm), [{
- return N->getZExtValue() == ((N->getZExtValue()) & 0x1f) ;
-}]>;
+def immZExt5 : ImmLeaf<i32, [{return Imm == (Imm & 0x1f);}]>;
// Mips Address Mode! SDNode frameindex could possibily be a match
// since load and store instructions from stack used it.