summaryrefslogtreecommitdiff
path: root/tests/feature_check/inlineasm_rv32_zba.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/feature_check/inlineasm_rv32_zba.py')
-rw-r--r--tests/feature_check/inlineasm_rv32_zba.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/feature_check/inlineasm_rv32_zba.py b/tests/feature_check/inlineasm_rv32_zba.py
new file mode 100644
index 000000000..812288190
--- /dev/null
+++ b/tests/feature_check/inlineasm_rv32_zba.py
@@ -0,0 +1,10 @@
+# check if RISC-V 32 inline asm supported Zba opcodes
+
+
+@micropython.asm_rv32
+def f():
+ sh1add(a0, a0, a0)
+
+
+f()
+print("rv32_zba")