This patch extends abs detection in matched for half float.

Bootstrapped and regression test on aarch64-linux-gnu. Is this OK for trunk?

gcc/ChangeLog:

* match.pd: Add pattern to convert (type)A >=/> 0 ? A : -A into abs (A) for 
half float.

gcc/testsuite/ChangeLog:

* gcc.dg/tree-ssa/absfloat16.c: New test.

Signed-off-by: Kugan Vivekanandarajah <kvivekana...@nvidia.com>

Attachment: 0001-abs-for-half-float.patch
Description: 0001-abs-for-half-float.patch

Reply via email to