[PATCH] D106804: [test-suite] Add tests for FP classification intrinsics

Serge Pavlov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 9 04:44:18 PDT 2021


sepavloff added a comment.

In D106804#2956881 <https://reviews.llvm.org/D106804#2956881>, @RKSimon wrote:

> Something I noticed is that we don't have much test coverage in clang/test/codegen for the fpclass intrinsics - including no constexpr testing afaict (although I don't think __builtin_fpclassify is constexpr yet) - is that something you'd be willing to take a look at?

They present and are in `clang/test/Sema/constant-builtins-2.c`. This is C file but the constant evaluator is the same for C++. The tested functions are `fpclassify`, `isinf`, `isnan`, `isfinite` and `isnormal`. And yes, `fpclassify` is constexpr.


Repository:
  rT test-suite

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D106804/new/

https://reviews.llvm.org/D106804



More information about the cfe-commits mailing list