Docs say nomem
option tells the compiler that the asm block does not read/write memory. But If I want to ensure that no load/stores are moved across the asm block, should I not use nomem
option even if the asm itself does no memory operations?
For example, I have CPSID/E instruction in arm, and I don't want memory operations to move across the instruction.