Commit 32abc804 authored by Sylvain Boulmé's avatar Sylvain Boulmé
Browse files

fix builtin_sqrt

parent adff86c0
......@@ -355,7 +355,7 @@ let expand_builtin_inline name args res =
(* Float arithmetic *)
| "__builtin_fabs", [BA(DR(FR a1))], BR(DR(FR res)) ->
emit (Pfabs(D, res, a1))
| "__builtin_fsqrt", [BA(DR(FR a1))], BR(DR(FR res)) ->
| ("__builtin_fsqrt" | "__builtin_sqrt"), [BA(DR(FR a1))], BR(DR(FR res)) ->
emit (Pfsqrt(D, res, a1))
| "__builtin_fmadd", [BA(DR(FR a1)); BA(DR(FR a2)); BA(DR(FR a3))], BR(DR(FR res)) ->
emit (Pfmadd(D, res, a1, a2, a3))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment