Re: [PATCH 04/10] x86, asm: define CC_SET() and CC_OUT() macros

2016-06-08 Thread Borislav Petkov
On Wed, Jun 08, 2016 at 12:34:05PM -0700, H. Peter Anvin wrote: > (I'm going to assume for now that you meant the whole patch series.) Same from me: Reviewed-by: Borislav Petkov -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply.

Re: [PATCH 04/10] x86, asm: define CC_SET() and CC_OUT() macros

2016-06-08 Thread H. Peter Anvin
On 06/08/16 12:29, H. Peter Anvin wrote: > On 06/07/16 22:09, Andy Lutomirski wrote: >> On Tue, Jun 7, 2016 at 4:31 PM, H. Peter Anvin wrote: >>> From: "H. Peter Anvin" >>> >>> The CC_SET() and CC_OUT() macros can be used together to take >>> advantage of the new __GCC_ASM_FLAG_OUTPUTS__ feature

Re: [PATCH 04/10] x86, asm: define CC_SET() and CC_OUT() macros

2016-06-08 Thread H. Peter Anvin
On 06/07/16 22:09, Andy Lutomirski wrote: > On Tue, Jun 7, 2016 at 4:31 PM, H. Peter Anvin wrote: >> From: "H. Peter Anvin" >> >> 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 compatibl

Re: [PATCH 04/10] x86, asm: define CC_SET() and CC_OUT() macros

2016-06-07 Thread Andy Lutomirski
On Tue, Jun 7, 2016 at 4:31 PM, H. Peter Anvin wrote: > From: "H. Peter Anvin" > > 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 old

[PATCH 04/10] x86, asm: define CC_SET() and CC_OUT() macros

2016-06-07 Thread H. Peter Anvin
From: "H. Peter Anvin" 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 co