On 7/26/19, Peter Zijlstra peterz@infradead.org wrote:
On Fri, Jul 26, 2019 at 01:18:06PM +0300, Jari Ruusu wrote:
Shouldn't those clobber contraints actually be: "memory","cc" That is because addl subl (and other) machine instructions actually modify the flags register too.
gcc docs say: The "cc" clobber indicates that the assembler code modifies the flags register.
GCC x86 assumes any asm() will clobber "cc".
No worries then. Thanks for your clarification.