summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/fun_globals.py
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2022-03-29 22:38:19 +1100
committerDamien George <damien@micropython.org>2022-03-30 16:32:17 +1100
commitbf3585b33c4fcd47edcf39494b7bc464a018b4fc (patch)
tree390a6b97dce63e4d937f772d9d80566b7614581f /tests/basics/fun_globals.py
parentdf9a4122062ff706ad4b6a76cb5bc16d1a23d384 (diff)
downloadmicropython-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