diff options
author | Damien George <damien@micropython.org> | 2022-03-29 22:38:19 +1100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2022-03-30 16:32:17 +1100 |
commit | bf3585b33c4fcd47edcf39494b7bc464a018b4fc (patch) | |
tree | 390a6b97dce63e4d937f772d9d80566b7614581f /tests/basics/fun_globals.py | |
parent | df9a4122062ff706ad4b6a76cb5bc16d1a23d384 (diff) | |
download | micropython-bf3585b33c4fcd47edcf39494b7bc464a018b4fc.tar.gz micropython-bf3585b33c4fcd47edcf39494b7bc464a018b4fc.zip |
py/asmxtensa: Fix use of l32i/s32i when offset won't fit in encoding.
This commit adds optimised l32i/s32i functions that select the best load/
store encoding based on the size of the offset, and uses the function when
necessary in code generation.
Without this, ASM_LOAD_REG_REG_OFFSET() could overflow the word offset
(using a narrow encoding), for example when loading the prelude from the
constant table when there are many (>16) constants.
Fixes issue #8458.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests/basics/fun_globals.py')
0 files changed, 0 insertions, 0 deletions