This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/49244] __sync or __atomic builtins will not emit 'lock bts/btr/btc'


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49244

--- Comment #16 from Paolo Bonzini <bonzini at gnu dot org> ---
> This also suggests there's an error in the current x86_64 kernel implementation 
> as the kernel bitops are supposed to operate on machine word-size locations, so 
> it should be using BTSQ not BTSL

Why?  Since bts adjust the memory address according to the bit number, btsl and
btsq are entirely the same instruction.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]