ldmia.w sp!,{r3,lr}
In general, the assembler will take care. You only need to worry about it if you want to force a special instruction. I suggest to read the relevant reference manual as it lists all opcodes and the syntax.