Hi Artyom and Quentin,
It looks like we are still generating .s files with invalid pop operand with Thumb1.
This is a problem when not using integrated assembler, because it
produces errors like 'cannot honor width suffix -- `pop {r7,lr}''.
See the attached test case to reproduce the issue.
The function emitPopSpecialFixUp replaces instructions
like pop {r7, lr} with:
pop {r7}
pop {r0}
mov lr, r0
since lt cannot be encoded with Thumb1.
But it only deletes lr operand from pop instruction when
the pop is the last instruction in the BB.
We should handle cases where the pop instruction
might be followed by other BB terminator instructions.
I tried to fix the issue, let me know what else you suggest.