]> git.ipfire.org Git - thirdparty/gcc.git/commit
ifcvt: Add support for conditional copysign
authorTamar Christina <tamar.christina@arm.com>
Thu, 9 Nov 2023 14:00:20 +0000 (14:00 +0000)
committerTamar Christina <tamar.christina@arm.com>
Thu, 9 Nov 2023 14:06:06 +0000 (14:06 +0000)
commitf30ecd8050444fb902ab66b4600c590908861fdf
treeeae4168f3ed0449c651386e0baa18eea6b943249
parent3f176e1adc6bc9cc2c21222d776b51d9f43cb66b
ifcvt: Add support for conditional copysign

This adds a masked variant of copysign.  Nothing very exciting just the
general machinery to define and use a new masked IFN.

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

Note: This patch is part of a testseries and tests for it are added in the
AArch64 patch that adds supports for the optab.

gcc/ChangeLog:

PR tree-optimization/109154
* internal-fn.def (COPYSIGN): New.
* match.pd (UNCOND_BINARY, COND_BINARY): Map IFN_COPYSIGN to
IFN_COND_COPYSIGN.
* optabs.def (cond_copysign_optab, cond_len_copysign_optab): New.
gcc/internal-fn.def
gcc/match.pd
gcc/optabs.def