[Bug 117] New: Program using core.simd does not compile

gdc-bugzilla at gdcproject.org gdc-bugzilla at gdcproject.org
Tue Apr 8 05:30:28 PDT 2014


http://bugzilla.gdcproject.org/show_bug.cgi?id=117

            Bug ID: 117
           Summary: Program using core.simd does not compile
    Classification: Unclassified
           Product: GDC
           Version: 4.8.x
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gdc
          Assignee: ibuclaw at gdcproject.org
          Reporter: jens.k.mueller at gmx.de

The following program

void main(string[] args)
{
    import core.simd;
    float4 a = 1, b = 2;
    float4 c = __simd(XMM.ADDSS, a, b);
}

fails to compile with gdc. The compiler aborts with

test.d:5: error: undefined identifier __simd
test.d:5: error: undefined identifier XMM

My running gdc on Linux.
gdc (crosstool-NG hg+unknown-20131212.080758) 4.8.2
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

How do I generate SSE instructions with gdc?

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/d.gnu/attachments/20140408/95ec774c/attachment.html>


More information about the D.gnu mailing list