www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 23077] New: codegen cannot generage XMM load/store for


          Issue ID: 23077
           Summary: codegen cannot generage XMM load/store for optimized
                    operation that uses byte/short/...
           Product: D
           Version: D2
          Hardware: x86_64
                OS: All
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: contact lsferreira.net

The following code produces an Illegal instruction (core dumped) on the

float bug(float x) {
    short i = *cast(short*)&x;
    return *cast(float*)&i;

The codegen try to generate optimized calls with XMM opcodes but fail to do it.
This might happen to other types too.

May 01 2022