diff options
author | Xavier Leroy <xavier.leroy@college-de-france.fr> | 2020-07-27 09:54:00 +0200 |
---|---|---|
committer | Xavier Leroy <xavierleroy@users.noreply.github.com> | 2020-07-27 17:06:34 +0200 |
commit | 77ce8ba291afa9f5629a160df440f9af6614f3ef (patch) | |
tree | 3888df3631e39df97cdb58a8f7e3914c40007e13 /riscV | |
parent | 70f105e623dddeb27be258fedb56bd0e9a59d190 (diff) | |
download | compcert-77ce8ba291afa9f5629a160df440f9af6614f3ef.tar.gz compcert-77ce8ba291afa9f5629a160df440f9af6614f3ef.zip |
Add __builtin_sqrt as synonymous for __builtin_fsqrt
__builtin_sqrt (no "f") is the name used by GCC and Clang.
Diffstat (limited to 'riscV')
-rw-r--r-- | riscV/Asmexpand.ml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/riscV/Asmexpand.ml b/riscV/Asmexpand.ml index 96fd3766..810514a3 100644 --- a/riscV/Asmexpand.ml +++ b/riscV/Asmexpand.ml @@ -528,7 +528,7 @@ let expand_builtin_inline name args res = assert (al = X5 && ah = X6 && res = X7); expand_ctz ~sixtyfour:false ~splitlong:true (* Float arithmetic *) - | "__builtin_fsqrt", [BA(FR a1)], BR(FR res) -> + | ("__builtin_fsqrt" | "__builtin_sqrt"), [BA(FR a1)], BR(FR res) -> emit (Pfsqrtd(res, a1)) | "__builtin_fmadd", [BA(FR a1); BA(FR a2); BA(FR a3)], BR(FR res) -> emit (Pfmaddd(res, a1, a2, a3)) |