Re: [PATCH] x86: Optimize TIF checking in __switch_to_xtra.

2016-12-09 Thread Thomas Gleixner
On Fri, 9 Dec 2016, Thomas Gleixner wrote: > On Tue, 6 Dec 2016, Kyle Huey wrote: > > I propose the following patch, which results in GCC generating this code: > > > > mov(%rsi),%rax > > xor(%rdi),%rax > > mov%rdi,%rbx > > mov%rsi,%r12 > > test $0x200,%eax

Re: [PATCH] x86: Optimize TIF checking in __switch_to_xtra.

2016-12-09 Thread Thomas Gleixner
On Tue, 6 Dec 2016, Kyle Huey wrote: > I propose the following patch, which results in GCC generating this code: > > mov(%rsi),%rax > xor(%rdi),%rax > mov%rdi,%rbx > mov%rsi,%r12 > test $0x200,%eax > mov%rax,%rdx > jne3f > 1: test $0x100