[Issue 234] dynamic arrays in combination with SSE instructions cause segment faults

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Dec 12 02:03:16 PST 2006


http://d.puremagic.com/issues/show_bug.cgi?id=234


bugzilla at digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Comment #1 from bugzilla at digitalmars.com  2006-12-12 04:03 -------
It segment faults because dynamic arrays are stored differently than static
arrays. When using inline asm, one must account for this. For the dynamic
arrays, using the following will work:

asm{
        mov EAX,a+4;
        movupd XMM0, [EAX];
        mov EAX,b+4;
        movupd [EAX], XMM0;
        emms;
}


-- 



More information about the Digitalmars-d-bugs mailing list