https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80040
Bug ID: 80040 Summary: SSE4.1 ptest not always merged Product: gcc Version: 6.3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: linux at carewolf dot com Target Milestone: --- Created attachment 40971 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40971&action=edit Example The intrinsics _mm_testz_si128 and _mm_testc_si128 both map to the exact same instruction and parameters. They are sometimes merged to just one instruction call, but not always. I have attached and example where in the first function the two intrinsics are merge but in the second are not.