Richard Henderson

Richard Henderson's contributions

GNU C library
Article

New asm flags feature for x86 in GCC 6

Richard Henderson

Following a discussion on the Linux Kernel Mailing List , and further discussion about the design , we added a new feature to the extended inline assembly supported by GCC. The problem was that that there was no way to tell GCC that the inline assembly produces useful information in the eflags register. To work around this, programs must either copy the data from the eflags register to a general register, or re-test whatever condition was contained within the flags...