summaryrefslogtreecommitdiff
path: root/tests/inlineasm/asmfpldrstr.py
diff options
context:
space:
mode:
authorJeff Epler <jeff@adafruit.com>2021-03-15 13:50:49 -0500
committerGitHub <noreply@github.com>2021-03-15 13:50:49 -0500
commit05ed179e11599dd45a76dfb14ecf624d0ff96d68 (patch)
treea046c6d1f117814168150484ed1bf7840d3400d7 /tests/inlineasm/asmfpldrstr.py
parent3cbff45f9aac5ea2855bbc888083d356a91c80fe (diff)
parentf9b4189b4c640823dabb76de8effd2a836da2eb0 (diff)
Merge pull request #4362 from microDev1/code-formatting
Add code formatting and translations check
Diffstat (limited to 'tests/inlineasm/asmfpldrstr.py')
-rw-r--r--tests/inlineasm/asmfpldrstr.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/inlineasm/asmfpldrstr.py b/tests/inlineasm/asmfpldrstr.py
index 4c480671f..c65f8a798 100644
--- a/tests/inlineasm/asmfpldrstr.py
+++ b/tests/inlineasm/asmfpldrstr.py
@@ -1,11 +1,14 @@
import array
-@micropython.asm_thumb # test vldr, vstr
+
+
+@micropython.asm_thumb # test vldr, vstr
def arrayadd(r0):
vldr(s0, [r0, 0])
vldr(s1, [r0, 4])
vadd(s2, s0, s1)
vstr(s2, [r0, 8])
+
z = array.array("f", [2, 4, 10])
arrayadd(z)
print(z[2])