x87 register clobber returns "unknown register name" error

Bernd Edlinger bernd.edlinger@hotmail.de
Fri Dec 11 08:07:00 GMT 2015


Hi Hadrien,

>    asm volatile ("fstps (%1)" :
>                  : // No output
>                  "t" (input), "r" (output) :
>                  "memory", "st(0)");

st(0) may work in assembler, but in the clobber section you must write "st".



Regards
Bernd.


More information about the Gcc-help mailing list