www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18034] New: SIMD optimization issues

https://issues.dlang.org/show_bug.cgi?id=18034

          Issue ID: 18034
           Summary: SIMD optimization issues
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: mmcomando gmail.com

Created attachment 1666
  --> https://issues.dlang.org/attachment.cgi?id=1666&action=edit
Code that triggers bug

Result of function changes if DMD optimization is enabled.

$ dmd --version                        
DMD64 D Compiler v2.077.1
Copyright (c) 1999-2017 by Digital Mars written by Walter Bright

$ dmd  test.d; ./test  
              11
true

$ dmd -O test.d; ./test
               0
false

--
Dec 05 2017