Issue 123761
Summary expm1(x) is not folded at the compilation time when x is constant
Labels new issue
Assignees
Reporter k-arrows
    Consider the following C++ example. The function exp(x) is folded, but expm1(x) is not. I still don't have a good idea of how to list these kinds of issues exhaustively.
https://godbolt.org/z/ravEhEEqh
```cpp
#include <cmath>

double f1() {
  return std::exp(0.)-1.;
}

double f2() {
 return std::expm1(0.);
}
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to