summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit546bcd2f5085603b74586cd0168067916f38ae70 (patch)
tree7dd25ba77fe37c681ec4fdecc99b2c9bf9c4d02e /llvm/lib
parent43964803584e7b2fb1dde5a934baa6cdb62737da (diff)
downloadbcm5719-llvm-546bcd2f5085603b74586cd0168067916f38ae70.tar.gz
bcm5719-llvm-546bcd2f5085603b74586cd0168067916f38ae70.zip
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. llvm-svn: 188911
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/AArch64/AArch64InstrNEON.td2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64InstrNEON.td b/llvm/lib/Target/AArch64/AArch64InstrNEON.td
index 175c3aa656b..fb6d65450de 100644
--- a/llvm/lib/Target/AArch64/AArch64InstrNEON.td
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud