aboutsummaryrefslogtreecommitdiff
path: root/tests/decode/succ_pattern_group_nest2.decode
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2020-05-16 13:15:02 -0700
committerRichard Henderson <richard.henderson@linaro.org>2020-06-08 10:36:47 -0700
commitb44b3449a08818f0eb25b93faaf535e9c9a85e50 (patch)
tree0aac860b3f61062e251a8c6108eef4254c895756 /tests/decode/succ_pattern_group_nest2.decode
parentdf63044d02bf79241257bafe282d966c86933b68 (diff)
decodetree: Allow group covering the entire insn space
This is an edge case for sure, but the logic that disallowed this case was faulty. Further, a few fixes scattered about can allow this to work. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tests/decode/succ_pattern_group_nest2.decode')
-rw-r--r--tests/decode/succ_pattern_group_nest2.decode13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/decode/succ_pattern_group_nest2.decode b/tests/decode/succ_pattern_group_nest2.decode
new file mode 100644
index 0000000000..8d5ab4b2d3
--- /dev/null
+++ b/tests/decode/succ_pattern_group_nest2.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.
+
+%sub1 0:8
+%sub2 8:8
+%sub3 16:8
+%sub4 24:8
+
+# Group with complete overlap of the two patterns
+{
+ top 00000000 00000000 00000000 00000000
+ sub4 ........ ........ ........ ........ %sub1 %sub2 %sub3 %sub4
+}