https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90202
Richard Biener changed:
What|Removed |Added
Keywords||ra
Target|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90202
--- Comment #2 from Antony Polukhin ---
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90202
--- Comment #1 from Marc Glisse ---
IIRC this is a tuning decision made on purpose. If you use just -mavx512f
instead of the -march, you get the code you expected.