arm: properly range check immediate operands of VSHL and VQSHL
authorJan Beulich <jbeulich@novell.com>
Mon, 12 Jan 2015 08:05:19 +0000 (09:05 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 12 Jan 2015 08:05:19 +0000 (09:05 +0100)
commitcb3b1e65a9af9fd95dce40c4444050c30cd07a2b
tree9d76a43911e5e45657fdfaafca29495f78e0cb8a
parentb38ead219b31fed4014cd5b1078da968744b879d
arm: properly range check immediate operands of VSHL and VQSHL

These two, other than VQSHLU, didn't have their immediates properly range
checked so far.

(Re-sending unchanged from the original v2 due to never having got an
answer to https://sourceware.org/ml/binutils/2013-04/msg00121.html.)

gas/
2015-01-12  Jan Beulich  <jbeulich@suse.com>

* gas/config/tc-arm.c (do_neon_shl_imm): Check immediate range.
(do_neon_qshl_imm): Likewise.

gas/testsuite/
2015-01-12  Jan Beulich  <jbeulich@suse.com>

* gas/arm/neon-addressing-bad.s: Add test for invalid VSHL,
VQSHL, and VQSHLU immediates.
* gas/arm/neon-addressing-bad.l: Update accordingly.
gas/ChangeLog
gas/config/tc-arm.c
gas/testsuite/ChangeLog
gas/testsuite/gas/arm/neon-addressing-bad.l
gas/testsuite/gas/arm/neon-addressing-bad.s