[llvm-bugs] [Bug 34579] New: APFloat asserts for x87 long doubles: "Can not have more high bits to fill than integerPartWidth"

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Sep 12 08:52:08 PDT 2017


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

            Bug ID: 34579
           Summary: APFloat asserts for x87 long doubles: "Can not have
                    more high bits to fill than integerPartWidth"
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Support Libraries
          Assignee: unassignedbugs at nondot.org
          Reporter: a.sidorin at samsung.com
                CC: llvm-bugs at lists.llvm.org

A simple unit test:

TEST(APFloatTest, x87Largest) {
  APFloat MaxX87Val = APFloat::getLargest(APFloat::x87DoubleExtended);
  EXPECT_TRUE(MaxX87Val.isLargest()); // Don't crash.
}

Causes an assertion failure in APFloat::isSignificandAllOnes():
  assert(NumHighBits <= integerPartWidth &&
      "Can not have more high bits to fill than integerPartWidth");

-- 
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/20170912/37a2b83b/attachment.html>


More information about the llvm-bugs mailing list