From 5c86c487ea5e3c6d4a56d7c98b39e33b6b4a28f5 Mon Sep 17 00:00:00 2001 From: Luc Van Oostenryck Date: Sat, 5 Sep 2020 11:53:38 +0200 Subject: builtin: add declaration for __builtin_fma{,f,l}() The motivation for this is to experiment with adding infrastructure for the linearization of builtins. Signed-off-by: Luc Van Oostenryck --- builtin.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/builtin.c b/builtin.c index 2e9be8be..26b612dc 100644 --- a/builtin.c +++ b/builtin.c @@ -490,6 +490,9 @@ static const struct builtin_fn builtins_common[] = { { "__builtin_ffs", &int_ctype, 0, { &int_ctype }, .op = &ffs_op }, { "__builtin_ffsl", &int_ctype, 0, { &long_ctype }, .op = &ffs_op }, { "__builtin_ffsll", &int_ctype, 0, { &llong_ctype }, .op = &ffs_op }, + { "__builtin_fma", &double_ctype, 0, { &double_ctype, &double_ctype, &double_ctype }}, + { "__builtin_fmaf", &float_ctype, 0, { &float_ctype, &float_ctype, &float_ctype }}, + { "__builtin_fmal", &ldouble_ctype, 0, { &ldouble_ctype, &ldouble_ctype, &ldouble_ctype }}, { "__builtin_frame_address", &ptr_ctype, 0, { &uint_ctype }}, { "__builtin_free", &void_ctype, 0, { &ptr_ctype }}, { "__builtin_huge_val", &double_ctype, 0 }, -- cgit 1.2.3-korg