From fe079aa13d6f77f9d7323b58ab24448e73ae6a93 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Mon, 8 Jun 2020 10:41:49 -0700 Subject: 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 Signed-off-by: Richard Henderson --- tests/decode/succ_pattern_group_nest4.decode | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/decode/succ_pattern_group_nest4.decode (limited to 'tests') 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 + ] + } + ] +} -- cgit v1.2.3