[PATCH] D109950: [Clang] Enable IC/IF mode for __ibm128

Qiu Chaofan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 17 00:18:41 PDT 2021


qiucf created this revision.
qiucf added reviewers: nemanjai, hubert.reinterpretcast, rjmccall, PowerPC, aaron.ballman.
qiucf requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

As for 128-bit floating points on PPC, compiler should have three machine modes:

- IFmode, Always IBM extended double
- KFmode, Always IEEE 754R 128-bit floating point (implemented in D80374 <https://reviews.llvm.org/D80374>)
- TFmode, Matches the default for long double
  - If -mabi=ieeelongdouble, TFmode is IEEE 754R 128-bit floating point, and the L/l suffixes produces IEEE 754R constants
  - If -mabi=ibmlongdouble, TFmode is IBM extended double, and the L/l suffixes produces IBM extended double constants


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D109950

Files:
  clang/include/clang/AST/ASTContext.h
  clang/include/clang/Basic/TargetInfo.h
  clang/lib/AST/ASTContext.cpp
  clang/lib/Basic/TargetInfo.cpp
  clang/lib/Sema/SemaDeclAttr.cpp
  clang/test/Sema/attr-mode.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109950.373152.patch
Type: text/x-patch
Size: 7741 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210917/90e1bb2d/attachment.bin>


More information about the cfe-commits mailing list