https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115931
Bug ID: 115931 Summary: mips: vec_pack_usat_m's pattern is wrong at gcc/config/mips/loongson-mmi.md:167 Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: lin1.hu at intel dot com Target Milestone: --- If I understand correctly. mips's packuswh(vec_pack_usat_<mode>) means convert signed integer to unsigned integer with unsigned saturation. But gcc's us_saturate means unsigned integer convert unsigned integer with unsigned saturation. So the pattern should use UNSPEC.