search for: xadd32mr

Displaying 3 results from an estimated 3 matches for "xadd32mr".

Did you mean: add32rr
2004 Dec 02
3
[LLVMdev] Adding xadd instruction to X86
Hi, I'm trying to add the xadd instruction to the X86 back end. xadd r/m32, r32 exchanges r/m32 and r32, and loads the sum into r/m32. I'm interested in the case where the destination operand is a memory location. I've added the following entry to X86InstrInfo.td: def XADD32mr : I<0x87, MRMDestMem, (ops i32mem:$src1, R32:$src2), "xadd{l} {$src1|$src2}, {$src2|$src1}">; The xadd is emitted for the intrinsic function: call int (<integer type>*, <integer type>)* %llvm.atomic_fetch_add_store(<integer type>*...
2004 Dec 02
0
[LLVMdev] Adding xadd instruction to X86
...g to add the xadd instruction to the X86 back end. > xadd r/m32, r32 > exchanges r/m32 and r32, and loads the sum into r/m32. I'm > interested in the case where the destination operand is a > memory location. > > I've added the following entry to X86InstrInfo.td: > def XADD32mr : I<0x87, MRMDestMem, > (ops i32mem:$src1, R32:$src2), This looks fine. > "xadd{l} {$src1|$src2}, {$src2|$src1}">; I haven't checked this, but it's probably fine. > The xadd is emitted for the intrinsic function: > call int (&...
2004 Dec 03
2
[LLVMdev] Adding xadd instruction to X86
...ruction to the X86 back end. >>xadd r/m32, r32 >>exchanges r/m32 and r32, and loads the sum into r/m32. I'm >>interested in the case where the destination operand is a >>memory location. >> >>I've added the following entry to X86InstrInfo.td: >>def XADD32mr : I<0x87, MRMDestMem, >> (ops i32mem:$src1, R32:$src2), > > > This looks fine. > > >> "xadd{l} {$src1|$src2}, {$src2|$src1}">; > > > I haven't checked this, but it's probably fine. > > >>T...