The shǎng and rù tones change a preceding non-rù tone to HM, and are themselves never affected.
In the context of tone changes in a specific linguistic system, the shǎng and rù tones convert a preceding non-rù tone into HM without being affected themselves.