It is incorrect to set all flags in the eflags register. Thus, some bits are reserved and must be equal to 0. (3,5,15,22 and higher) bit 1 must be 1. There are also rflags. But hello jerome. Therefore, there is no need to use rflags instead of eflags for all operations with modified flags. But I know people who use free bits for their own use. More suitable rflags hi dword. Thus, in a 64-bit architecture there are enough free registers to use. But there is no 32-bit arch. Therefore, it is highly recommended that you do this. Since future arches may use some of these bits. But these flags do not relate to changing the shape of the 32-bit arc to 64. This is the only register that cannot be changed at all. Thus, all possible reasons for any case are already being used. I do not think that any situation that can be used, some additional flag is still not used. This may be due to a change in the architecture of the cardinal processor. I do not think that some decided to do this for an obvious reason, all soft ones should be discarded and rewritten from the very beginning. This is an extremely difficult and huge job ...
source share