Fix overlapping register allocations.

This commit is contained in:
Martin Ling
2022-02-28 23:02:34 +00:00
parent d755f7a5c8
commit ad3216435a

View File

@ -357,6 +357,7 @@ buf_ptr .req r4
// Clobbers:
length .req r0
num .req r1
prev .req r1
longest .req r1
limit .req r1
@ -373,7 +374,6 @@ buf_ptr .req r4
str num, [state, #NUM_SHORTFALLS] // state.num_shortfalls = num // 2
// Back up previous longest shortfall.
prev .req r0
ldr prev, [state, #LONGEST_SHORTFALL] // prev = state.longest_shortfall // 2
str prev, [state, #PREV_LONGEST_SHORTFALL] // prev_longest_shortfall = prev // 2