Re: [PATCH 04/10] x86, asm: define CC_SET() and CC_OUT() macros
From: Andy Lutomirski
Date: Wed Jun 08 2016 - 01:09:34 EST
On Tue, Jun 7, 2016 at 4:31 PM, H. Peter Anvin <hpa@xxxxxxxxxxxxxxx> wrote:
> From: "H. Peter Anvin" <hpa@xxxxxxxxx>
>
> The CC_SET() and CC_OUT() macros can be used together to take
> advantage of the new __GCC_ASM_FLAG_OUTPUTS__ feature in gcc 6+ while
> remaining backwards compatible. CC_SET() generates a SET instruction
> on older compilers; CC_OUT() makes sure the output is received in the
> correct variable.
Nice.
Reviewed-by: Andy Lutomirski <luto@xxxxxxxxxx>