diff mbox series

[3/4] builtin: add declaration for __builtin_fma{,f,l}()

Message ID 20200905111211.82199-4-luc.vanoostenryck@gmail.com (mailing list archive)
State Mainlined, archived
Headers show
Series builtin: teach sparse to linearize __builtin_fma() | expand

Commit Message

Luc Van Oostenryck Sept. 5, 2020, 11:12 a.m. UTC
The motivation for this is to experiment with adding infrastructure
for the linearization of builtins.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
---
 builtin.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/builtin.c b/builtin.c
index 2e9be8be8adb..26b612dc401b 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 },