<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=http://email.email.llvm.org/c/eJylU01v2zAM_TX2hXBgS7HTHHxInWTrYe2ADNtugWzTsTZZMiQ5afrrR7sfS4pilwmCROpRFMknlqY-5zvR9QqhMjUGfBXE6yBeBVn8Mp9VxqWu1FAjBLxoUB9nbcA3H4Gd8O0l-GbSwH6_-7Yu9nsyW9OEBAKW0XwF7jbFPk2XFwbvfPRWHDoBozFsN_ff96ui2Ox28HB_aSi1h05IHbCbo5F1wJYv6OL2WQAabsLjWTrC_AKw6AeroUGPzuNjhb0nw-1mf3e_-bkqvpE9hbeFmNYVRfh6N1is30WLupbNh-V86L002o0O6Cx6SCByvqaMq4TEHmuhvawg-iGUohUfvRUQqQ6ipumjjohSZOy8lZV_c_oJNVrhsf4nk1NhxncZh2AeT-pb7uPoB9eCFY_Xp505AtYyYAVwdg1VY5BX5fro3c9oEU4IDhF8K_yY-HRzJCKL4SQc0C8y1mLl1RkMlaiTT5SNGfwsrHNeL_lShGLwrbH5V3FE9cVY8_Rb6nCwKm-978eKBmxL8yB9O5SzynSkKHV83aLeml_0AqnSuQEdCSm7WSZhmze8nM9Lwat0wQUmPBaLsqxL0VRlk84zHipRonJ5kN4GjGk8weSC5CBdh_8fgcxZzJKEsUVyw2mb8SxDzrJ5VsbzalkmxBcSYWo2-pkZewhtPrksh4MjUEnn3V9QOCcPGnEKmCL00ivMCyq6A2-gGXQ1fUM4tbJqqWXOULVCH0aCiChPfwlMMymNMsJLfYh6M3YX9b-0Rnc4ddoZSrzmK5wyy6e0_gDWRkw1>52891</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Calls to functions which may change the state of the floating-point environment may be optimized out
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          PavelMorozkin
      </td>
    </tr>
</table>

<pre>
    Sample code:
```
#include <fenv.h>
#include <math.h>

#if __STDC__ == 1 && __STDC_IEC_559__ == 1

#pragma STDC FENV_ACCESS ON

int main(void)
{
    sin(0.5);
    return fetestexcept(FE_INEXACT) ? 0 : 1;
}

#endif
```
Options: `-O1 -std=c11 -pedantic -Wall -Wextra -lm -ffp-model=strict`
Generated code:
```
main: # @main
        push rax
        mov edi, 32
        call fetestexcept
```
Here we see that `call sin` was incorrectly optimized out.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx9UkuPmzAQ_jXmMiICs5DkwCFLknYP3a2UVdtbZGAIbo2NbJNs9td3YB9NVqtaI9vj7_O8S1Of853oeoVQmRpZsmLRmkUrlkWv8qLyROpKDTUCS4oG9XHWsmTzGdgJ316C75QG9vvd47rY74m2JoEYGM9I3oC7TbFP0-UF4YON3opDJ2Akw3Zz_2O_KorNbgcP95dEqT10QmrGF0cja8aXr-j89uUCtNyER7N0hJMLwKIfrIYGPTqPTxX2nojbzf7ufvNrVTwSn8LbQkT7iiJ8-8vm6w_Roq5l82k5H3ovjXajAXoLH2IIna8p4yqma4-10F5WEP4UStGOT94KCFUHYdP0YUeNUkR23srKvxv9ghqt8Fj_t5NTYUa_PAF2E03qe-7j6gfXghVP16-dOQLWkvECEn4NVWOQV-X6zO9XtAgnBIcIvhV-THz6OTYii-AkHNAUGWux8uoMhkrUyWfKxgx-FtR5Ui-TpQi89Arzgn468AaaQVdTLeHUyqqlvp-haoU-jF7Im6eCgGkmpVFGeKkPYW_GEaEhltboDqdxOUOJ106Dwaq89b4f-8T4luQgfTuUs8p0pCh1fDvC3prfFDep0rkBHV1SvljGQZtH80qkmCaZqAVmJc5FEzdY8nkyr-N4UQZKlKhcztJbxrnGE0wm6M7SdSBzHvE45nweLxI6ZkmWYcKzm6yMbqplGVMPkZqoZmMcM2MPgc2nkMrh4AhU0nn3DxTOyYNGnNyRfTH41tj8uzii-masef4jdTAFkE8J_AWI1Dac">