Problem with SSE2 code

Problem with SSE2 code


I have a problem with a SSE2 code, that I can`t resolve. The piece of code is this:

asm("movupd xmm1, [xp]");xp+=2;
asm("movupd xmm0 , [yp]");yp+=2;

asm("addpd xmm1, xmm0\n");

asm("movupd [yp], xmm1\n");

"yp" at this moment becomes null so I think this is "addpd"s fault because if "addpd" instruction is commented, yp keeps the reference.
Somebody knows about this? I`ve been with this for several hours and I can`t see it.

Thanks in advance!!! :)

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.