summaryrefslogtreecommitdiffstats
path: root/tests/decode/err_width2.decode
diff options
context:
space:
mode:
authorRichard Henderson2019-03-06 00:34:41 +0100
committerRichard Henderson2019-03-12 17:46:58 +0100
commit2decfc95583dc28add69810eaca6ada7b4b44d3a (patch)
tree718b5b36ee3787742d9c30f344922f2bc802ae44 /tests/decode/err_width2.decode
parentdecodetree: Prefix extract function names with decode_function (diff)
downloadqemu-2decfc95583dc28add69810eaca6ada7b4b44d3a.tar.gz
qemu-2decfc95583dc28add69810eaca6ada7b4b44d3a.tar.xz
qemu-2decfc95583dc28add69810eaca6ada7b4b44d3a.zip
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 <richard.henderson@linaro.org>
Diffstat (limited to 'tests/decode/err_width2.decode')
-rw-r--r--tests/decode/err_width2.decode5
1 files changed, 5 insertions, 0 deletions
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