
Software Optimization Guide for AMD64 Processors | 25112 Rev. 3.06 September 2005 |
9.10EMMS and FEMMS Usage
Optimization
Use FEMMS or EMMS to clean up the register file between an x87 instruction and a following MMX, 3DNow!, or Enhanced 3DNow! instruction or vice versa.
Application
This optimization applies to:
•
•
Rationale
Use either the FEMMS or the EMMS instruction when switching between the x87
There is no penalty for switching between the x87
architectural registers, so there is no easy way to use them concurrently without cleaning up the register file in between by using FEMMS or EMMS. For more information, see AMD64 Architecture Programmer’s Manual Volume 1: Application Programming, order# 24592.
210 | Optimizing with SIMD Instructions | Chapter 9 |