aboutsummaryrefslogtreecommitdiff
path: root/tests/decode
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2020-06-08 10:41:49 -0700
committerRichard Henderson <richard.henderson@linaro.org>2020-06-09 09:19:48 -0700
commitfe079aa13d6f77f9d7323b58ab24448e73ae6a93 (patch)
treef4df7ae82047199cc5789ec65b5f8324688379de /tests/decode
parent33c0f25bfd7af2848d078afe2876dcb0d5a1c6d3 (diff)
decodetree: Drop check for less than 2 patterns in a group
While it makes little sense for the end product to have a group containing only a single pattern, avoiding this case within an incremental patch set is troublesome. Because this is expected to be a transient condition, do not bother "optimizing" this case, e.g. by folding away the group. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tests/decode')
-rw-r--r--tests/decode/succ_pattern_group_nest4.decode13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/decode/succ_pattern_group_nest4.decode b/tests/decode/succ_pattern_group_nest4.decode
new file mode 100644
index 0000000000..dc54a1d285
--- /dev/null
+++ b/tests/decode/succ_pattern_group_nest4.decode
@@ -0,0 +1,13 @@
+# 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.
+
+# Verify deeper nesting, and a single element in the groups.
+{
+ [
+ {
+ [
+ sub1 00000000 a:8 b:8 c:8
+ ]
+ }
+ ]
+}