diff options
author | Jakub Jelinek <jakub@redhat.com> | 2022-10-31 09:07:04 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2022-10-31 09:07:04 +0100 |
commit | 29490c2a1dc00944f2420eb59374705f180a2e53 (patch) | |
tree | d7575bdac07e30c9f98048935e939b6fa568a5ca /gcc/fold-const.cc | |
parent | 7f940822816917fea276654514eccdc8eacd5e93 (diff) | |
download | gcc-29490c2a1dc00944f2420eb59374705f180a2e53.zip gcc-29490c2a1dc00944f2420eb59374705f180a2e53.tar.gz gcc-29490c2a1dc00944f2420eb59374705f180a2e53.tar.bz2 |
builtins: Add __builtin_nextafterf16b builtin
The following patch adds another needed builtin.
The earlier patch adds among other things __builtin_nextafterf16
builtin which we need in order to constexpr evaluate
std::nextafter(_Float16) overload (patch for that has been posted already).
While there is inline implementation of the overload, it isn't constant
evaluation friendly, and the builtin doesn't need libm implementation
because it will be used only during constant expression evaluation.
We need the same thing also for std::nextafter(__gnu_cxx::__bfloat16_t)
though and this patch does that.
2022-10-31 Jakub Jelinek <jakub@redhat.com>
* builtin-types.def (BT_FN_BFLOAT16_BFLOAT16_BFLOAT16): New.
* builtins.def (BUILT_IN_NEXTAFTERF16B): New builtin.
* fold-const-call.cc (fold_const_call_sss): Handle
CFN_BUILT_IN_NEXTAFTERF16B.
Diffstat (limited to 'gcc/fold-const.cc')
0 files changed, 0 insertions, 0 deletions