Displaying 3 results from an estimated 3 matches for "tworeg".
Did you mean:
twomeg
2004 Dec 02
3
[LLVMdev] Adding xadd instruction to X86
...er>,
<integer type> <value>)
I currently have the following code (PtrReg contains the
pointer argument, ValReg the value arg, and TmpReg an unused
register.):
addDirectMem(BuildMI(BB, X86::XADD32mr, 4,
TmpReg).addReg(TwoReg), ValReg);
This fails the assertion isMem. Any help with this would be
appreciated.
Thanks,
Brent
2004 Dec 02
0
[LLVMdev] Adding xadd instruction to X86
...ger type>* <pointer>,
>
> <integer type> <value>)
>
> I currently have the following code (PtrReg contains the
> pointer argument, ValReg the value arg, and TmpReg an unused
> register.):
>
> addDirectMem(BuildMI(BB, X86::XADD32mr, 4,
> TmpReg).addReg(TwoReg), ValReg);
This is the problem. Try this:
addDirectMem(BuildMI(BB, X86::XADD32mr, 4, TmpReg), ValReg).addReg(TwoReg);
In particular, you want to add the memory address before the other reg.
Another problem though, is that (without looking at manual) I think xadd
modifies the register value. I...
2004 Dec 03
2
[LLVMdev] Adding xadd instruction to X86
...>>
>><integer type> <value>)
>>
>>I currently have the following code (PtrReg contains the
>>pointer argument, ValReg the value arg, and TmpReg an unused
>>register.):
>>
>>addDirectMem(BuildMI(BB, X86::XADD32mr, 4,
>>TmpReg).addReg(TwoReg), ValReg);
>
>
> This is the problem. Try this:
> addDirectMem(BuildMI(BB, X86::XADD32mr, 4, TmpReg), ValReg).addReg(TwoReg);
>
> In particular, you want to add the memory address before the other reg.
>
> Another problem though, is that (without looking at manual) I t...