diff options
author | Alessandro Gatti <a.gatti@frob.it> | 2025-01-14 01:09:40 +0100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-01-16 12:51:51 +1100 |
commit | 928c71638cf13eb0b47aebb917913820b889403f (patch) | |
tree | 1589e999e385c5586f8126d2dde496022f5d9f2f /docs/esp32/tutorial | |
parent | e84c9abfc21f57fe93b4d9a05c1d123e3f333880 (diff) |
py/asmarm: Fix locals address loading code generation with large imm.
This commit fixes code generation for loading a local's address if its
index is greater than 63.
The old code blindly encoded the offset into an `ADD Rd, Rn, #imm` opcode,
but only the lowest 8 bits would be put into the opcode itself. This
commit instead generates a two-opcodes sequence, a constant load into R8,
and then an `ADD Rd, Rn, R8` opcode.
This fixes `tests/float/math_domain.py` for the qemu/SABRELITE board.
Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
Diffstat (limited to 'docs/esp32/tutorial')
0 files changed, 0 insertions, 0 deletions