https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101248
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by hongtao Liu <liuho...@gcc.gnu.org>: https://gcc.gnu.org/g:ed392e9db434898eccec81edd85323d21d555fe9 commit r12-1923-ged392e9db434898eccec81edd85323d21d555fe9 Author: liuhongt <hongtao....@intel.com> Date: Mon Jun 28 19:27:23 2021 +0800 The upper bits of FIXUPIMMS{S,D} should come from src1 not dest. gcc/ChangeLog: PR target/101248 * config/i386/sse.md (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Refined to .. (avx512f_sfixupimm<mode><maskz_scalar_name><round_saeonly_name>): this. (avx512f_sfixupimm<mode>_mask<round_saeonly_name>"): Refined. * config/i386/subst.md (maskz_scalar): New define_subst. (maskz_scalar_name): New subst_attr. (maskz_scalar_op5): Ditto. (round_saeonly_maskz_scalar_op5): Ditto. (round_saeonly_maskz_scalar_operand5): Ditto. gcc/testsuite/ChangeLog PR target/101248 * gcc.target/i386/pr101248.c: New test.