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>
17 lines
196 B
Python
17 lines
196 B
Python
@micropython.asm_thumb
|
|
def clz(r0):
|
|
clz(r0, r0)
|
|
|
|
|
|
print(clz(0xF0))
|
|
print(clz(0x8000))
|
|
|
|
|
|
@micropython.asm_thumb
|
|
def rbit(r0):
|
|
rbit(r0, r0)
|
|
|
|
|
|
print(hex(rbit(0xF0)))
|
|
print(hex(rbit(0x8000)))
|