D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7949 - [ICE] (cgcod.c) with SIMD array
Summary: [ICE] (cgcod.c) with SIMD array
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 All
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-20 09:54 UTC by Zoadian
Modified: 2012-04-22 12:04 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Zoadian 2012-04-20 09:54:41 UTC
DMD 2.059 segfaults when compiling this:

import std.stdio;
import std.math;
import core.simd;

void main()
{
    int[4] o = [1,2,3];
    int4 v1;
	v1.array = o;
    int4 v2;
    v2.array = o;
    
    
    
    auto r = __simd(XMM.ADDPS, v1,v2);
    
    writeln(r.array); //this causes a segmentation fault when compiling
}
Comment 1 SomeDude 2012-04-21 13:25:23 UTC
On 2.059 Win32

PS E:\DigitalMars\dmd2\samples> rdmd bug.d
Internal error: ..\ztc\cgcod.c 1447
Comment 2 github-bugzilla 2012-04-22 12:03:35 UTC
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/07fa67cedd2b970834ce626d66c035163afc312d
fix Issue 7949 - [ICE] (cgcod.c) with SIMD array