[llvm-bugs] [Bug 30869] New: PowerPC complex long double gets confusing getSemantics in APFloat

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Nov 1 17:59:12 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=30869

            Bug ID: 30869
           Summary: PowerPC complex long double gets confusing
                    getSemantics in APFloat
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Support Libraries
          Assignee: unassignedbugs at nondot.org
          Reporter: joerg at NetBSD.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Try to compile the following for powerpc64-linux:

fn1() { 0.0L + 0.0L * 1.0fi; }

It hits an assertion in clang's AST/APValue.h line 370 because real part has
the (public) llvm::APFloatBase::PPCDoubleDouble semantics, but the imaginary
part ends up with the (internal) llvm::PPCDoubleDoubleImpl semantics.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20161102/62897709/attachment.html>


More information about the llvm-bugs mailing list