https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90202
--- Comment #2 from Antony Polukhin <antoshkka at gmail dot com> --- Then I'm fine with the current codegen. However with -mavx512f it produces a few additional instructions for rbp register test(v, v): push rbp ; not necessary mov rax, rdi mov rbp, rsp ; not necessary vmovdqu32 zmm1, ZMMWORD PTR [rbp+16] ; could use rsp directly vpaddd zmm0, zmm1, ZMMWORD PTR [rbp+80] ; could use rsp directly vmovdqu32 ZMMWORD PTR [rdi], zmm0 vzeroupper pop rbp ; not necessary ret