[PATCH] D96568: [CFE, SystemZ] Emit s390.tdc instrincic for __builtin_isnan in Constrained FP mode.
Jonas Paulsson via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 17 11:52:29 PST 2021
jonpa updated this revision to Diff 324376.
jonpa added a comment.
> Sounds good to me. Hopefully I'll get round to __builtin_isinf soon and a single hook will make the patch slightly smaller.
Patch updated to call the new hook testFPKind() and make it take a BuiltinID as argument (that seems to work at least for the moment - maybe an enum type will become necessary at some point per your suggestion..?)
I am not sure if this is "only" or "typically" used in constrained FP mode, or if the mode should be independent of calling this hook. The patch as it is asserts that it is called for an FP type but leaves it to the target to decide based on the FP mode, where SystemZ opts out unless it is constrained (which I think is what is wanted...).
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D96568/new/
https://reviews.llvm.org/D96568
Files:
clang/lib/CodeGen/CGBuiltin.cpp
clang/lib/CodeGen/TargetInfo.cpp
clang/lib/CodeGen/TargetInfo.h
clang/test/CodeGen/SystemZ/strictfp_builtins.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96568.324376.patch
Type: text/x-patch
Size: 5571 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210217/741ee647/attachment.bin>
More information about the cfe-commits
mailing list