https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103571
--- Comment #5 from Hongtao.liu <crazylht at gmail dot com> --- (In reply to Uroš Bizjak from comment #4) > (In reply to Hongyu Wang from comment #3) > > > So we may need to support V8HFmode in VALID_SSE2_REG_MODE if we don't want > > to modify those function_args and function_value stuff. > > We have V8HFmode moves for TARGET_SSE, So I guress we can enable it for > VALID_SSE2_REG_MODE. There're several places in i386-expand.c which assume TARGET_AVX512FP16 for case V8HF/V16HF/V32HF, if we want to put V8HF/V16HF/V32HF in VALID_SSE2/AVX256/AVX512F_REG_MODE, we need to "fix" them first. For insn patterns, it's ok since condition is binded to real instruction but not mode.