www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20981] New: Segfault for inlined __simd_sto


          Issue ID: 20981
           Summary: Segfault for inlined __simd_sto
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: moonlightsentinel disroot.org

The following code segfaults on linux64 when compiled with -O -inline:

import core.simd; // Import need for intrinsics

void main()
    void16 a;
    simd_sto!(XMM.STOUPS)(a, a);

void16 simd_sto(XMM opcode)(void16 op1, void16 op2)
    return cast(void16) __simd_sto(opcode, op1, op2);

Jun 26 2020