[PATCH] Builtin fadd variants folding implementation
Tejas Joshi
tejasjoshi9673@gmail.com
Wed Sep 11 13:11:00 GMT 2019
Hi.
This patch includes implementation of fadd, faddl, daddl functions.
The patch boostraps on x86_64-linux-gnu and passes regression tests.
Thanks,
Tejas
gcc/ChangeLog:
2019-09-11 Tejas Joshi <tejasjoshi9673@gmail.com>
* builtin-types.def: Define narrowing function types.
* builtins.def: Define fadd variants builtin functions.
* fold-const-call.c (fold_const_narrow_binary): New. Folding calls
and conditions for standard arithmetic functions.
(fold_const_call): Add case for fadd variants.
gcc/testsuite/ChangeLog:
2019-09-11 Tejas Joshi <tejasjoshi9673@gmail.com>
* gcc.dg/builtin-fadd-1.c: New test.
* gcc.dg/builtin-fadd-2.c: New test.
* gcc.dg/builtin-fadd-3.c: New test.
* gcc.dg/builtin-fadd-4.c: New test.
* gcc.dg/builtin-fadd-5.c: New test.
* gcc.dg/builtin-fadd-6.c: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fadd-2.diff
Type: text/x-patch
Size: 10333 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190911/1b9be97b/attachment.bin>
More information about the Gcc-patches
mailing list