diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2011-11-07 18:59:49 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2011-11-07 18:59:49 +0000 |
commit | 68698cc20d7e1fa1b45a30e7c25313796f40d5c6 (patch) | |
tree | 5451e62ccdc54020b575d7bebd53f0f04468bbfa /lib/Target/Mips/Mips64InstrInfo.td | |
parent | bce22b48fee6a0b0295cc18c7994f3a515e63398 (diff) | |
download | llvm-68698cc20d7e1fa1b45a30e7c25313796f40d5c6.tar.gz llvm-68698cc20d7e1fa1b45a30e7c25313796f40d5c6.tar.bz2 llvm-68698cc20d7e1fa1b45a30e7c25313796f40d5c6.tar.xz |
Make the type of shift amount i32 in order to reduce the number of shift
instruction definitions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143989 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/Mips64InstrInfo.td')
-rw-r--r-- | lib/Target/Mips/Mips64InstrInfo.td | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/Mips/Mips64InstrInfo.td b/lib/Target/Mips/Mips64InstrInfo.td index 3708c4a362..83bd7b88c5 100644 --- a/lib/Target/Mips/Mips64InstrInfo.td +++ b/lib/Target/Mips/Mips64InstrInfo.td @@ -32,7 +32,7 @@ def Subtract32 : SDNodeXForm<imm, [{ def immZExt5_64 : ImmLeaf<i64, [{return Imm == (Imm & 0x1f);}]>; // imm32_63 predicate - True if imm is in range [32, 63]. -def imm32_63 : ImmLeaf<i64, +def imm32_63 : ImmLeaf<i32, [{return (int32_t)Imm >= 32 && (int32_t)Imm < 64;}], Subtract32>; @@ -43,12 +43,12 @@ def imm32_63 : ImmLeaf<i64, // 64-bit shift instructions. class shift_rotate_imm64<bits<6> func, bits<5> isRotate, string instr_asm, SDNode OpNode>: - shift_rotate_imm<func, isRotate, instr_asm, OpNode, immZExt5_64, shamt_64, + shift_rotate_imm<func, isRotate, instr_asm, OpNode, immZExt5, shamt, CPU64Regs>; class shift_rotate_imm64_32<bits<6> func, bits<5> isRotate, string instr_asm, SDNode OpNode>: - shift_rotate_imm<func, isRotate, instr_asm, OpNode, imm32_63, shamt_64, + shift_rotate_imm<func, isRotate, instr_asm, OpNode, imm32_63, shamt, CPU64Regs>; // Mul, Div |