Displaying 2 results from an estimated 2 matches for "3eb39ad9".
2009 Dec 29
0
[LLVMdev] Question to use inline assemble in X86
On Dec 29, 2009, at 3:09 AM, Heyu Zhu wrote:
> Hi everyone,
>
> I try to add an instruction to x86. The instruction is a multiply-add instruction
> MULADD A, B, C; //A = A + B * C.
> I use the instruction by inline assemble as below
>
> int x, y, z;
> ..... ....
> x = 0;
> asm("MULADD %0, %1, %2":"=r"(x):"0"(x), "r"(y),
2009 Dec 29
2
[LLVMdev] Question to use inline assemble in X86
Hi everyone,
I try to add an instruction to x86. The instruction is a
multiply-add instruction
MULADD A, B, C; //A = A + B * C.
I use the instruction by inline assemble as below
int x, y, z;
..... ....
x = 0;
asm("MULADD %0, %1, %2":"=r"(x):"0"(x), "r"(y), "r"(z));
..... ....
The backend does allocate registers %edx, %edi, %esi for x,y, z