From 94597b6146f30f949f2c454f424082a2b0f55a0e Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Mon, 22 Jul 2019 17:02:56 -0700 Subject: decodetree: Allow !function with no input bits Call this form a "parameter", returning a value extracted from the DisasContext. Reviewed-by: Philippe Mathieu-Daude Signed-off-by: Richard Henderson --- tests/decode/succ_function.decode | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/decode/succ_function.decode (limited to 'tests/decode/succ_function.decode') diff --git a/tests/decode/succ_function.decode b/tests/decode/succ_function.decode new file mode 100644 index 0000000000..7751b1784e --- /dev/null +++ b/tests/decode/succ_function.decode @@ -0,0 +1,6 @@ +# 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. + +# "Field" as parameter pulled from DisasContext. +%foo !function=foo +foo 00000000000000000000000000000000 %foo -- cgit v1.2.3-55-g7522