[Patch][GCC][middle-end] - Generate FRINTZ for (double)(int) under -ffast-math on aarch64

Jirui Wu Jirui.Wu@arm.com
Mon Aug 16 16:13:47 GMT 2021


Hi all,

This patch generates FRINTZ instruction to optimize type casts.

The changes in this patch covers:
* Opimization of a FIX_TRUNC_EXPR cast inside a FLOAT_EXPR using IFN_TRUNC.
* Change of corresponding test cases.

Regtested on aarch64-none-linux-gnu and no issues.

Ok for master? If OK can it be committed for me, I have no commit rights.

Thanks,
Jirui

gcc/ChangeLog:

	* tree-ssa-forwprop.c (pass_forwprop::execute): Optimize with frintz.


gcc/testsuite/ChangeLog:

	* gcc.target/aarch64/fix_trunc1.c: Update to new expectation.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diff
Type: application/octet-stream
Size: 2559 bytes
Desc: diff
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20210816/114439d1/attachment-0001.obj>


More information about the Gcc-patches mailing list