[mips][msa] Improves robustness of the test by enhancing pattern matching.