https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101796
--- Comment #1 from Hongtao.liu <crazylht at gmail dot com> --- There's 2 issues. 1. simplify_rtx should be able to simplify it. 2. x86 backend use ix86_gen_scratch_sse_rtx (mode) which prevent simplication.