[Issue 9200] Wrong SIMD cod generated

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Dec 23 10:49:43 PST 2012


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



--- Comment #1 from jerro.public at gmail.com 2012-12-23 10:49:42 PST ---
I managed to reduce it a bit further:

import std.stdio;
import core.simd;

double2 * v(double2* a)
{
    return a;
}

void main()
{
    double2 a = [1, 2];

    *v(&a) = a;

    writeln(a.array);
}

And the disassembly:


movsd  QWORD PTR [rbp-0x20],xmm1
lea    rdi,[rbp-0x10]
call   4263f4 <_D3tmp1vFPNhG2dZPNhG2d>
movsd  xmm1,QWORD PTR [rbp-0x20]
movapd XMMWORD PTR [rax],xmm1

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list