This happens often in the Linux kernel to continue to support older assemblers for newer instruction set extensions.
The x86 retbleed mitigation uses .inst to trick the hardware instruction decoder...different instructions are encoded/run than what is speculatively decoded.