Thread overview
[Issue 7508] New: float4 values aren't stored on initialisation
Apr 20, 2012
SomeDude
Apr 20, 2012
Sean Cavanaugh
February 15, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7508

           Summary: float4 values aren't stored on initialisation
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: druntime
        AssignedTo: nobody@puremagic.com
        ReportedBy: junk.Nebster@gmail.com


--- Comment #0 from junk.Nebster@gmail.com 2012-02-15 08:11:46 PST ---
When running the code below, the float 2 should be stored yet it isn't. On Linux, the output is 4 lines of -nan, on Mac, the output is 4 lines of 0.0:

import core.simd;
import std.conv;
import std.stdio;

void main() {
  float4 fl = 2;
  foreach(f; fl.array)
    writefln("%f", f);
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 20, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7508


SomeDude <lovelydear@mailmetrash.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lovelydear@mailmetrash.com


--- Comment #1 from SomeDude <lovelydear@mailmetrash.com> 2012-04-20 00:32:21 PDT ---
2.059 Win32

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

See also http://d.puremagic.com/issues/show_bug.cgi?id=7507

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 20, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7508


Sean Cavanaugh <WorksOnMyMachine@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |WorksOnMyMachine@gmail.com


--- Comment #2 from Sean Cavanaugh <WorksOnMyMachine@gmail.com> 2012-04-20 01:11:39 PDT ---
See also:

http://d.puremagic.com/issues/show_bug.cgi?id=7413

This is preventing a lot of work from being able to be done on the simd libraries.  Algorithms like sin, cos, require a lot of literal constants to function, let alone several hundreds of constants  for a comprehensive set of unit tests.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------