www.digitalmars.com         C & C++   DMDScript  

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

Date: Tue, 8 Apr 2014 13:30:28 +0100
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"

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 gdcproject.org
          Reporter: jens.k.mueller 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.
Apr 08 2014