summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/inlineasm/asmpushpop.py12
-rw-r--r--tests/inlineasm/asmpushpop.py.exp1
2 files changed, 13 insertions, 0 deletions
diff --git a/tests/inlineasm/asmpushpop.py b/tests/inlineasm/asmpushpop.py
index 74e729dfa..99566a755 100644
--- a/tests/inlineasm/asmpushpop.py
+++ b/tests/inlineasm/asmpushpop.py
@@ -6,4 +6,16 @@ def f(r0, r1, r2):
pop({r1, r2})
+@micropython.asm_thumb
+def g():
+ b(START)
+ label(SUBROUTINE)
+ push({lr}) # push return address
+ mov(r0, 7)
+ pop({pc}) # return
+ label(START)
+ bl(SUBROUTINE)
+
+
print(f(0, 1, 2))
+print(g())
diff --git a/tests/inlineasm/asmpushpop.py.exp b/tests/inlineasm/asmpushpop.py.exp
index d00491fd7..fea32e7d8 100644
--- a/tests/inlineasm/asmpushpop.py.exp
+++ b/tests/inlineasm/asmpushpop.py.exp
@@ -1 +1,2 @@
1
+7