mirror of
https://github.com/micropython/micropython.git
synced 2025-09-05 17:30:41 +02:00
Thumb/Thumb2 tests are now into their own subdirectory, as RV32IMC-specific tests will be added as part of the RV32 inline assembler support. Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
12 lines
156 B
Python
12 lines
156 B
Python
# test constants in assembler
|
|
|
|
|
|
@micropython.asm_thumb
|
|
def c1():
|
|
movwt(r0, 0xFFFFFFFF)
|
|
movwt(r1, 0xF0000000)
|
|
sub(r0, r0, r1)
|
|
|
|
|
|
print(hex(c1()))
|