]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2006-10-26 Paul Brook <paul@codesourcery.com>
authorPaul Brook <paul@codesourcery.com>
Thu, 26 Oct 2006 22:18:50 +0000 (22:18 +0000)
committerPaul Brook <paul@codesourcery.com>
Thu, 26 Oct 2006 22:18:50 +0000 (22:18 +0000)
gas/
* config/tc-arm.c (do_neon_ext): Fix constraint.

ChangeLog.csl
gas/config/tc-arm.c

index 1d464111e533944f9235dc20720607338b52613d..ef2f7f8dda8ba0db05f64a3b33a2a1a12201ca4c 100644 (file)
@@ -1,3 +1,8 @@
+2006-10-26  Paul Brook  <paul@codesourcery.com>
+
+       gas/
+       * config/tc-arm.c (do_neon_ext): Fix constraint.
+
 2006-10-26  Paul Brook  <paul@codesourcery.com>
 
        gas/
index 1105590e779a9e6f7fe295c58db6efd5b0bd147f..b018a2fa4b58d717e2353a29e690f3f7a596df01 100644 (file)
@@ -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;