<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/113711>113711</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
hypot(x, y), hypotf(x, y), hypotl(x, y) are not folded at the compilation time when (x, n) is constant
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
fawdlstty
</td>
</tr>
</table>
<pre>
Consider the following example.
<https://godbolt.org/z/TfYn34Pv8>
```cpp
#include <cmath>
double f1() {
return std::hypot(3.0, 4.0);
}
double f2() {
return std::hypotf(3.0f, 4.0f);
}
double f3() {
return std::hypotl(3.0, 4.0);
}
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMks-OmzAQxp9muFiL8BgCHHzYzZZzD730aOwhuDI2wibZ9OkrEtJW2x4iIUbM8P00fz4Voz15IgnVG1TvmVrTGBY5qItxMaVr1gdzlcfgozW0sDQSG4Jz4WL9idGHmmZHORTvULyCOI4pzRHEK2AH2J2C6YNLeVhOgN1PwO7b8N2L8uu5AfFlF93fh-L-6HneMyis1241xEAc9aTS-Eljwto7YgMHbABbBvXbvcDYQmldPIvJbL2I1_E6hwTYiLwAPLJyCy2I_X-o3__HxSe5wx087OThCbR4Eu2e6PmxuftnZqQwrWhVRpLX2DZ1xTnPRmkE1YVStenFQbWc2pbzujVC67IQSDqzEgsseYEVP1S84nlP2Ju2Lg-IjW54DWVBk7Iud-48bTfNbIwrSc5FzXnmVE8u3myE6OnCblVA3Fy1yE300q-nCGXhbEzxDybZ5Eg-bvSxTXvdZsUj-73gf7Pu7yxTCzEf0uZNQ4apdHOqDtNsnUo2eJbsROwykmcPod-ENjIdfEzKp2xdnPzkYJvGtc91mAC7reE9vMxL-EE6AXa3MSNgt-_hLPFXAAAA__-9KvUa">