diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2017-12-07 12:44:09 -0800 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2018-02-22 15:44:07 -0800 |
commit | 568ae7efae7e4b90e213049efb8b6e4e12b47ca3 (patch) | |
tree | fdf0ac271d188e6c295c7c028e2688434185456d /tests/decode/check.sh | |
parent | ff8689611a1d954897d857b28f7ef404e11cfa2c (diff) |
scripts: Add decodetree.py
To be used to decode ARM SVE, but could be used for any fixed-width ISA.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tests/decode/check.sh')
-rwxr-xr-x | tests/decode/check.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/decode/check.sh b/tests/decode/check.sh new file mode 100755 index 0000000000..79a06c37cd --- /dev/null +++ b/tests/decode/check.sh @@ -0,0 +1,18 @@ +#!/bin/sh +# 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. + +PYTHON=$1 +DECODETREE=$2 +E=0 + +# All of these tests should produce errors +for i in err_*.decode; do + if $PYTHON $DECODETREE $i > /dev/null 2> /dev/null; then + # Pass, aka failed to fail. + echo FAIL: $i 1>&2 + E=1 + fi +done + +exit $E |