All of lore.kernel.org
 help / color / mirror / Atom feed
* Regression due to 0c44c2d0f459 x86: Use asm goto to implement better modify_and_test() functions
@ 2013-12-04  1:36 H. Peter Anvin
  2013-12-04  8:59 ` Ingo Molnar
  2013-12-04 22:51 ` [tip:x86/urgent] x86, bitops: Correct the assembly constraints to testing bitops tip-bot for H. Peter Anvin
  0 siblings, 2 replies; 5+ messages in thread
From: H. Peter Anvin @ 2013-12-04  1:36 UTC (permalink / raw)
  To: Peter Zijlstra; +Cc: Ingo Molnar, Jesse Brandeburg, Linux Kernel Mailing List

Hi guys,

0c44c2d0f459 x86: Use asm goto to implement better modify_and_test()
functions

causes a regression, because it incorrectly changed the constraints of
bitops.

Specifically, the GEN_BINARY_RMWcc() hardcodes a constraint as "er", but
it needs to be "Ir" for the bitops themselves.  "I" is correct (as
opposed to "J" even on 64 bits, because we only generate the 64-bit
version when we have a register operand.

Unfortunately there isn't a way we can get gcc+gas to generate a version
with an offset pointer.

	-hpa



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-01-31 21:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-04  1:36 Regression due to 0c44c2d0f459 x86: Use asm goto to implement better modify_and_test() functions H. Peter Anvin
2013-12-04  8:59 ` Ingo Molnar
2013-12-04 16:44   ` H. Peter Anvin
2014-01-31 21:32     ` Alex Williamson
2013-12-04 22:51 ` [tip:x86/urgent] x86, bitops: Correct the assembly constraints to testing bitops tip-bot for H. Peter Anvin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.