https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85406
--- Comment #3 from Allan Jensen <linux at carewolf dot com> --- You need to add the loop around it void test(unsigned *buffer, int count) { for (int i = 0; i < count; ++i) buffer[i] = qPremultiply(buffer[i]); }