https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103941
Bug ID: 103941 Summary: uavgv2qi3_ceil is not used Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: ubizjak at gmail dot com Target Milestone: --- Following testcase: unsigned char ur[16], ua[16], ub[16]; void avgu_v2qi (void) { int i; for (i = 0; i < 2; i++) ur[i] = (ua[i] + ub[i] + 1) >> 1; } does not vectorize on x86_64-linux-gnu with -O2 -ftree-vectorize.