<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/113802>113802</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
erfc(x) are not folded at the compilation time when (x) 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/EYKK96odf>
```cpp
#include <cmath>
double f1() {
return std::erfc(3.0);
}
double f2() {
return std::erfcf(3.0f);
}
double f3() {
return std::erfcl(3.0);
}
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMksGOrCwQhZ-m3JAxWKitCxY93eNmnuBfgpTKHwQjOD1zn_7Gbic3mdzcdGIkoTgfh6qjYrSjJ5JQvUJ1zdSWprDKQd2Miyl9ZTqYL3kJPlpDK0sTsSE4F27Wj4w-1bw4yoFfgZ9BXKaUlgjiDNgBdmMwOriUh3UE7H4Bdm__vb-3dTADiLdD9PjX_PH1y3LsoLC-d5shBuLSzypNPzQmbNoRGwrABrBlcHp9FBhbKW2rZzGZ3Ys40zr0gI3IOWAL4jgHp-vfePgcb3gAhyeI4jmi-5fF7wZlRgrTilZlJIuT4BzbFutskqKislFVw0WJRqPQ1PLqVKPmdVM2os6sRI5lwfFUFBXyOhdKa1RU8lpQ3aCAktOsrMud-5j3oWU2xo1kUYiGY-aUJhfvOUH0dGP3KiDusVnlLnrR2xih5M7GFP9gkk2O5DGEz70TaiXmQ9qjZMgwle7B6sO8WKeSDZ4lOxO7TeTZt8ZG1gcfk_Ip21Ynf2TNpmnTeR9mwG6_-VheljX8T30C7O5-I2B3POhD4u8AAAD__2Tw3Ug">