[PATCH] D97901: [SystemZ] Test for infinity in testFPKind().

Jonas Paulsson via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 3 18:03:42 PST 2021


jonpa created this revision.
jonpa added reviewers: uweigand, thopre.
jonpa requested review of this revision.

Recognize __builtin_isinf and BI__builtin_isfinite (and a few other builtin opcodes for finite checks) in testFPKind().

TDC can check for infinity, and for finite with an inversion of the result.

'finite', '__finite', ... seemed to always work as double with extension/trunction from float/long double. I would guess it is expected to handle those as well with TDC, or?


https://reviews.llvm.org/D97901

Files:
  clang/lib/CodeGen/TargetInfo.cpp
  clang/test/CodeGen/SystemZ/strictfp_builtins.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97901.327975.patch
Type: text/x-patch
Size: 4694 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210304/164edeed/attachment.bin>


More information about the cfe-commits mailing list