This example shows how to use the .volatile and .nonvolatile pseudo-ops to protect a section of handwritten assembly code from peephole optimization.
.volatile t 0x24 std %g2, [%o0] retl nop .nonvolatile