https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104666
--- Comment #3 from Hongtao.liu <crazylht at gmail dot com> --- (In reply to Hongtao.liu from comment #2) > So builtins are registered in the beginning, but isa checking is during > pass_expand, and gimple folding is between them, maybe we should restrict > builtin gimple folding under their required target. I'm testing this. + /* Avoid ICE in get_same_size_vectype which assumes real vector + mode, and it depends on vector_mode_supported_p, E_BLKmode + means target isa mismatch. */ + if (TYPE_MODE (type) == E_BLKmode) + break;