[Mips] Fix MSA constant splats on big endian (#242740)
When selecting a constant BUILD_VECTOR, the splat value was computed in
big endian order on big endian targets. The result is then retyped with
COPY_TO_REGCLASS, which leaves the register as is. MSA lanes are laid
out the same way on both endians, so a v16i8 splat of
<0x11, 0x22, 0x33, 0x44, ...> was built with fill.w 0x11223344, which
puts the bytes in reverse order.
Always compute the splat value in little endian order here.
On O32 this also fixes 64-bit splats that type legalization turns into
v4i32 BUILD_VECTORs, such as <2 x i64> <i64 1, i64 1>, which were
built with the two words swapped. These now use a longer
fill.w/insert.w/splati.d sequence instead of ldi.d.
Fixes #236458
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>