target/mips: Extract MSA helper definitions