www.digitalmars.com         C & C++   DMDScript  

D.gnu - [Bug 213] New: Compiler fails when compare two wrapped SIMD vectors

Date: Fri, 26 Feb 2016 21:40:46 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://bugzilla.gdcproject.org/
Auto-Submitted: auto-generated

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

            Bug ID: 213
           Summary: Compiler fails when compare two wrapped SIMD vectors
                    (give up with internal error)
           Product: GDC
           Version: development
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gdc
          Assignee: ibuclaw gdcproject.org
          Reporter: iaktakh gmail.com

Compiler fails with internal error when compare two wrapped into struct SIMD
vectors
No crash with ordinal types like (int) or B{int i;}
Note: simd vectors doesn't provide opEquals, you should use v1.array =3D=3D
v2.array

Code:

import core.simd;

struct S
{
    int4 vec;
}
void main()
{
    S s, b;
    assert(s =3D=3D b);
}

dub test --compiler=3Dgdc

gdc-catch-bug ~master: building configuration "application"...
source/app.d: In function 'D main':
source/app.d:7:6: internal compiler error: in prepare_cmp_insn, at
optabs.c:4234
 void main()
      ^
gdc --version
gdc (GCC) 5.3.0

OS: ArchLinux, x86_64

--=20
You are receiving this mail because:
You are watching all bug changes.=
Feb 26 2016