summaryrefslogtreecommitdiff
path: root/tests/run-tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-tests.py')
-rwxr-xr-xtests/run-tests.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/run-tests.py b/tests/run-tests.py
index c3017542c..d6eb9a3fb 100755
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -816,6 +816,12 @@ def run_tests(pyb, tests, args, result_dir, num_threads=1):
skip_tests.add("inlineasm/thumb/asmfpmuldiv.py")
skip_tests.add("inlineasm/thumb/asmfpsqrt.py")
+ if args.inlineasm_arch == "rv32":
+ # Check if @micropython.asm_rv32 supports Zba instructions, and skip such tests if it doesn't
+ output = run_feature_check(pyb, args, "inlineasm_rv32_zba.py")
+ if output != b"rv32_zba\n":
+ skip_tests.add("inlineasm/rv32/asmzba.py")
+
# Check if emacs repl is supported, and skip such tests if it's not
t = run_feature_check(pyb, args, "repl_emacs_check.py")
if "True" not in str(t, "ascii"):