CMOV usage

Steven Johnson stejohns at adobe.com
Wed Apr 16 16:50:28 PDT 2008


I came across a rather lengthy comment by Linus Torvalds about how the x86
CMOV instruction was almost always a bad idea on modern (P4+) CPUs:

http://ondioline.org/mail/cmov-a-bad-idea-on-out-of-order-cpus


Moh, we currently use CMOVs a lot in generated traces in Tamarin-Tracing...
and in the context we use it, I'm guessing that it won't make much
difference. But I'd be curious to hear the take on this from someone at
Intel.



More information about the Tamarin-devel mailing list