From 2decfc95583dc28add69810eaca6ada7b4b44d3a Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Tue, 5 Mar 2019 15:34:41 -0800 Subject: decodetree: Properly diagnose fields overflowing an insn Previously this would result in an exception for shifting the field mask by a negative number. Signed-off-by: Richard Henderson --- tests/decode/err_width2.decode | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tests/decode/err_width2.decode (limited to 'tests/decode/err_width2.decode') diff --git a/tests/decode/err_width2.decode b/tests/decode/err_width2.decode new file mode 100644 index 0000000000..47f0acf322 --- /dev/null +++ b/tests/decode/err_width2.decode @@ -0,0 +1,5 @@ +# This work is licensed under the terms of the GNU LGPL, version 2 or later. +# See the COPYING.LIB file in the top-level directory. + +# Diagnose too few bits (31 of 32) +one 0000000000000000000000000000000 -- cgit v1.2.3