On Wed, Dec 08, 2021 at 10:50:10AM -0800, Linus Torvalds wrote: > On Wed, Dec 8, 2021 at 10:44 AM Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote: > > > > From testing xadd had different flags from add; I've not yet looked at > > the SDM to see what it said on the matter. > > That should not be the case. Just checked, and it just says > > "The CF, PF, AF, SF, ZF, and OF flags are set according to the > result of the addition, which is stored in the destination operand" I got the constraints wrong :/ They match now.