Effect of `asm!` `nomem` option on compiler

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.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.