[PATCH] D26955: Fix bitwidth for x87 extended-precision floating-point type

Dominic Chen via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 21 20:28:32 PST 2016

ddcc created this revision.
ddcc added a reviewer: rsmith.
ddcc added a subscriber: cfe-commits.

llvm::APFloat::x87DoubleExtended is defined as having 80 bits of size



Index: lib/Basic/TargetInfo.cpp
--- lib/Basic/TargetInfo.cpp
+++ lib/Basic/TargetInfo.cpp
@@ -226,7 +226,7 @@
     return Double;
   switch (BitWidth) {
-  case 96:
+  case 80:
     if (&getLongDoubleFormat() == &llvm::APFloat::x87DoubleExtended)
       return LongDouble;

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26955.78825.patch
Type: text/x-patch
Size: 355 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161122/784628a2/attachment.bin>

More information about the cfe-commits mailing list