From: Paul Brook Date: Thu, 26 Oct 2006 22:18:50 +0000 (+0000) Subject: 2006-10-26 Paul Brook X-Git-Tag: binutils-csl-sourcerygxx-4_1-25~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=04ba869b57c4a3be14853866cc4ed9cbfaf623fa;p=thirdparty%2Fbinutils-gdb.git 2006-10-26 Paul Brook gas/ * config/tc-arm.c (do_neon_ext): Fix constraint. --- diff --git a/ChangeLog.csl b/ChangeLog.csl index 1d464111e53..ef2f7f8dda8 100644 --- a/ChangeLog.csl +++ b/ChangeLog.csl @@ -1,3 +1,8 @@ +2006-10-26 Paul Brook + + gas/ + * config/tc-arm.c (do_neon_ext): Fix constraint. + 2006-10-26 Paul Brook gas/ diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c index 1105590e779..b018a2fa4b5 100644 --- a/gas/config/tc-arm.c +++ b/gas/config/tc-arm.c @@ -12688,7 +12688,7 @@ do_neon_ext (void) struct neon_type_el et = neon_check_type (3, rs, N_EQK, N_EQK, N_8 | N_16 | N_32 | N_64 | N_KEY); unsigned imm = (inst.operands[3].imm * et.size) / 8; - constraint (imm >= 8 * neon_quad (rs), _("shift out of range")); + constraint (imm >= (neon_quad (rs) ? 16 : 8), _("shift out of range")); inst.instruction |= LOW4 (inst.operands[0].reg) << 12; inst.instruction |= HI1 (inst.operands[0].reg) << 22; inst.instruction |= LOW4 (inst.operands[1].reg) << 16;