| Issue |
76549
|
| Summary |
clang is suboptimal for `log(pow(x, y))` with fast-math
|
| Labels |
clang
|
| Assignees |
|
| Reporter |
k-arrows
|
Test case:
https://godbolt.org/z/1fvYPxY37
```c
#include<math.h>
double test1(double x) {
return log(pow(x, -3));
}
double test2(double x) {
return -3 * log(x);
}
```
My expectation is that the output of `test1` will be the same as `test2`.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs