I am working with gcc in linux, I have an implementation of an asm inline function, which adds two numbers in floating point and returns them by reference in the variable r also passed as a parameter, compiles but the result of the sum is 0.0 , someone could help me, thanks :) here my function:
#define suma(r, a, b)\
__asm__("fldz \n\t fld %1\n\t fadd %2\n\t fstp %0":"=&t"(r):"f"(a),"f"(b));