Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

CMOV (Developers)

posted by ecm Homepage E-mail, Düsseldorf, Germany, 22.03.2020, 14:26

> (P6 has a highly useful cmov that reduces branching, and is a substitute
> for a branch instruction and a mov. IIRC it is 3 bytes and replaces a one
> byte branch and two bytes mov. (in both cases + size of imm), equal size,
> better performance)

I recently discussed whether CMOVcc is available in all AMD64 processors: https://stackoverflow.com/questions/60760138/do-al...mplementations-support-the-cmovcc-instructions/

The other answer of mine linked from there includes this statement about CMOVcc:

> (I came across this thread involving Linus Torvalds which indicates that the conditional jump solution may actually be better or no worse than cmov. Make of that what you will.)

Note that CMOVcc has its own CPUID support bit. A processor being a 686+ class does not necessarily mean it has CMOVcc.

---
l

 

Complete thread:

Back to the forum
Board view  Mix view
22632 Postings in 2109 Threads, 402 registered users, 429 users online (0 registered, 429 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum