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

Dominic Chen via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 1 16:19:57 PST 2016


ddcc updated this revision to Diff 79996.
ddcc added a comment.

Change definition


https://reviews.llvm.org/D26955

Files:
  lib/Basic/TargetInfo.cpp
  lib/Sema/SemaDeclAttr.cpp


Index: lib/Sema/SemaDeclAttr.cpp
===================================================================
--- lib/Sema/SemaDeclAttr.cpp
+++ lib/Sema/SemaDeclAttr.cpp
@@ -3388,7 +3388,7 @@
       DestWidth = 64;
       break;
     case 'X':
-      DestWidth = 96;
+      DestWidth = 80;
       break;
     case 'T':
       DestWidth = 128;
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;
     break;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26955.79996.patch
Type: text/x-patch
Size: 689 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161202/66ceb552/attachment.bin>


More information about the cfe-commits mailing list