]> git.sesse.net Git - stockfish/commit
Fix asm modifiers in add_dpbusd_epi32x2 implementations
authorSebastian Buchwald <UniQP@web.de>
Sat, 14 Jan 2023 15:09:31 +0000 (16:09 +0100)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Sun, 22 Jan 2023 09:51:02 +0000 (10:51 +0100)
commitda5bcec481dc22ad2de2e2c8e5c6e8304a373445
treeb786aa0e03bd3104cb82e77cebe8985e99018180
parent3d2381d76d7bf9686ef0e0671f60c3b885a7058a
Fix asm modifiers in add_dpbusd_epi32x2 implementations

The accumulator should be an earlyclobber because it is written before
all input operands are read. Otherwise, the asm code computes a wrong
result if the accumulator shares a register with one of the other input
operands (which happens if we pass in the same expression for the
accumulator and the operand).

Closes https://github.com/official-stockfish/Stockfish/pull/4339

No functional change
src/nnue/layers/simd.h