<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/54975>54975</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [FPEnv][AArch64] Issues around -fexperimental-strict-floating-point
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          sfc-gh-sgiesecke
      </td>
    </tr>
</table>

<pre>
    When compiling:
```
#include <fenv.h>

int main() {
    fesetround(FE_TOWARDZERO);
}
```
with
```
clang -frounding-math -fexperimental-strict-floating-point test.c -c
```
this yields two warnings:
```
clang-14: warning: argument unused during compilation: '-fexperimental-strict-floating-point' [-Wunused-command-line-argument]
warning: overriding currently unsupported rounding mode on this target [-Wunsupported-floating-point-opt]
1 warning generated.
```
(not sure why this says "1 warning", but it does).

Both warnings are unexpected:
* Re `-Wunused-command-line-argument`: `-fexperimental-strict-floating-point` is a documented command line option. Interestingly, this warning goes away when removing `-c` and create a binary. Still, this seems wrong as this doesn't have anything to do with linking.
* Re `-Wunsupported-floating-point-opt`: My assumption was that `-fexperimental-strict-floating-point` removes this warning, and actually enables that support.

More generally, what's the current state of the `-frounding-math` implementation on `AArch64`? Is this going to be non-experimental in the next release?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVVU2PozgQ_TXkYoEIIV8HDulJtzSH0ax6VmppLysDBXjH2Mg2yfLv59mB_lj1zPRGKMGuctV7r6qcUtdT8dSRYpXuByGFaqPNKUrPUXqKdun83JbZRqhKjjWxaPOpIXVJumhzPxvDt1CO9VyoKDtE2ZFF-7vbPsOnIUvO6FHVsD7c__3n16fT4_mv-8evcI02s2e0P7-b_Cpc966hkly1LG5CZKCPe-46rOnfgYzoSTkuY-uMqFzcSM2d9xm0R-rIuqRicfVuYNcJyyZBsrbMXTW7cqNw1v5MngAkXuewL77-lZ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