[Issue 10444] New: writeln of a SIMD register

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jun 22 07:33:31 PDT 2013


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

           Summary: writeln of a SIMD register
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: bearophile_hugs at eml.cc


--- Comment #0 from bearophile_hugs at eml.cc 2013-06-22 07:33:30 PDT ---
import std.stdio, core.simd;
void main() {
    ubyte16 x;
    writeln(x); // Error
}


DMD 2.064alpha gives a long sequence of errors:

...\format.d(2950): Error: template std.format.formatValue does not match any
function template declaration. Candidates are:
...
test.d(4): Error: template instance std.stdio.writeln!(__vector(ubyte[16u]))
error instantiating


The workaround is to use .array:

writeln(x.array); // OK

But I'd like writeln to write SIMD values as ubyte16 even without .array for
greater uniformity in debugging code.

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


More information about the Digitalmars-d-bugs mailing list