[PATCH] D112025: Intrinsic for checking floating point class

Serge Pavlov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 24 07:49:52 PDT 2022


sepavloff added a comment.

In D112025#3527153 <https://reviews.llvm.org/D112025#3527153>, @nlopes wrote:

> We believe that there's a bug when the 2nd argument is 0.
> See here: https://gcc.godbolt.org/z/9735rYbqP
>
> LLVM produces 1, but it should be 0. Found by @regehr.

Although this is a degenerated case and any result is possible, treating 2nd argument as a set of FP classes is more consistent with zero return value.
Thanks!


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D112025



More information about the llvm-commits mailing list