aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorHao Liu <Hao.Liu@arm.com>2013-08-21 17:47:53 +0000
committerHao Liu <Hao.Liu@arm.com>2013-08-21 17:47:53 +0000
commit52d35c24600186790d83a0830ebdc79fb71f878d (patch)
tree27191cd3d403c7b326acdc85b5b9f7672fa259bb /lib
parent159b6f17755da2574dedb6010e90f46b064ec01f (diff)
downloadexternal_llvm-52d35c24600186790d83a0830ebdc79fb71f878d.zip
external_llvm-52d35c24600186790d83a0830ebdc79fb71f878d.tar.gz
external_llvm-52d35c24600186790d83a0830ebdc79fb71f878d.tar.bz2
A minor change for an obvous problem caused by r188451:
def imm0_63 : Operand<i32>, ImmLeaf<i32, [{ return Imm >= 0 && Imm < 63;}]>{ As it seems Imm <63 should be Imm <= 63. ImmLeaf is used in pattern match, but there is already a function check the shift amount range, so just remove ImmLeaf. Also add a test to check 63. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188911 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/AArch64/AArch64InstrNEON.td2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/AArch64/AArch64InstrNEON.td b/lib/Target/AArch64/AArch64InstrNEON.td
index 175c3aa..fb6d654 100644
--- a/lib/Target/AArch64/AArch64InstrNEON.td
+++ b/lib/Target/AArch64/AArch64InstrNEON.td
@@ -1414,7 +1414,7 @@ def FMOVvi_2D : NeonI_FMOV_impl<".2d", VPR128, v2f64, fmov64_operand, 0b1, 0b1>;
// Vector Shift (Immediate)
-def imm0_63 : Operand<i32>, ImmLeaf<i32, [{ return Imm >= 0 && Imm < 63; }]> {
+def imm0_63 : Operand<i32> {
let ParserMatchClass = uimm6_asmoperand;
}