https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115675
Bug ID: 115675 Summary: truncv4hiv4qi affect r14-1402-gd8545fb2c71683's optimization. Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: lin1.hu at intel dot com Target Milestone: --- After r15-1678-ge5f8a39941f6f0, truncv4hiv4qi affects dump and interferes with r14-1402-gd8545fb2c71683's optimization. When I compile pr108938-3.c with -mavx or -mavx512bw -mavx512vl, GCC doesn't generate bswap r32. I've discussed this with Hongtao and haven't found an easier way to do it yet. I think it might be possible to target match the current form to re-support bswap optimization with option -mavx.