Re:Does a compiler use all x86 instructions? (2010)
by rayiner on Wednesday August 24, 2016 @06:05PM
(#12355616)
No, LEA issues as a single micro-op on modern Intel CPUs, but no x86 CPU will merge a sequence of shift and add into a single micro op.
[ Parent
| on HN ]
Re:Does a compiler use all x86 instructions? (2010)
by sitkack on Wednesday August 24, 2016 @07:09PM
(#12355932)
How would one find this out? Sounds like it would be fun to figure out how to develop all possible reasonably compact instruction combinations to achieve the same basic block and then compare timings.
Re:Does a compiler use all x86 instructions? (2010)
by rayiner on Wednesday August 24, 2016 @07:41PM
(#12356035)
http://www.agner.org/optimize/
Document 4.