SPARC Assembly Language Reference Manual

B.5 Example 5

This example shows how to use the .volatile and .nonvolatile pseudo-ops to protect a section of handwritten asembly code from peephole optimization.

.volatile
t 		0x24
std	 	%g2, [%o0]
retl
nop
.nonvolatile