aboutsummaryrefslogtreecommitdiff
path: root/tests/decode/err_field8.decode
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2023-05-23 13:04:47 +0100
committerRichard Henderson <richard.henderson@linaro.org>2023-05-30 10:55:39 -0700
commit276d77de503e8f5f5cbd3f7d94302ca12d1d982e (patch)
tree3aae586642f04871b33af7bd4a3ff7fa3663b92e /tests/decode/err_field8.decode
parent7e6c28be2739c2286fe09702adef4740d9a1ed41 (diff)
tests/decode: Add tests for various named-field cases
Add some tests for various cases of named-field use, both ones that should work and ones that should be diagnosed as errors. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20230523120447.728365-7-peter.maydell@linaro.org>
Diffstat (limited to 'tests/decode/err_field8.decode')
-rw-r--r--tests/decode/err_field8.decode8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/decode/err_field8.decode b/tests/decode/err_field8.decode
new file mode 100644
index 0000000000..cc47c08a45
--- /dev/null
+++ b/tests/decode/err_field8.decode
@@ -0,0 +1,8 @@
+# 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 patterns which refer to undefined fields
+&f1 f1 a
+%field1 field2:3
+@fmt ........ ........ ........ .... a:4 &f1
+insn 00000000 00000000 00000000 0000 .... @fmt f1=%field1