www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18089] New: AArch64: Need Quadruple float support in CTFE

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

          Issue ID: 18089
           Summary: AArch64: Need Quadruple float support in CTFE hashOf /
                    core.internal.convert.parse
           Product: D
           Version: D2
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: johannespfau gmail.com

The core.internal.convert.parse function does currently not support the
'Quadruple' float format, which is used for the real type on AArch64.

Non-CTFE code seems to be suppoerted, but for CTFE this means that hashOf won't
work for reals on AArch64 targets. AFAICS this does not cause a problem when
compiling druntime / phobos, but when compiling the unittests, one test in
core.internal.hash causes a compile time failure:

enum raexpr = [8.99L+86i, 3.12L+99i, 5.66L+12i];
enum h29 = raexpr.hashOf();

So this blocks proper CI testing on AArch64 (as a compile failure when
compiling the tests obviously prevent us from doing any kind of regression
testing)

--
Dec 16 2017