diff --git a/tests/inlineasm/asmpushpop.py b/tests/inlineasm/asmpushpop.py index 74e729dfa2..99566a7558 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 d00491fd7e..fea32e7d83 100644 --- a/tests/inlineasm/asmpushpop.py.exp +++ b/tests/inlineasm/asmpushpop.py.exp @@ -1 +1,2 @@ 1 +7