--- Comment #3 from SomeDude <> 2012-04-21 14:17:06 
PDT ---
I've reduced the test case to this:

import core.simd;
import std.conv;

 string gen(int D) {
        string s;
        s ~= "r = __simd(XMM.ADDPS, v1,v2);";
        return "res.ptr["~to!string(0)~"] = r.ptr["~to!string(0)~"];";

T[D] simdAdd(T, int D)(T[D] a1, T[D] a2) {
    T[D] res;
    float4 r;
    return res;

void main()
    float[8] v1 = [1,2,3,4,1,2,3,4];
    float[8] v2 = [1,2,3,4,1,2,3,4];

but I can't reproduce the error message, so maybe I've overlooked something.
However, interestingly, this compiles with -O flag and crashes the compiler

PS E:\DigitalMars\dmd2\samples> rdmd bug.d
Internal error: ..\ztc\cg87.c 1699
PS E:\DigitalMars\dmd2\samples> rdmd -O bug.d
PS E:\DigitalMars\dmd2\samples>

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to