arm: Adjust cost of vector of constant zero
authorChristophe Lyon <christophe.lyon@linaro.org>
Thu, 28 Jan 2021 17:55:45 +0000 (17:55 +0000)
committerChristophe Lyon <christophe.lyon@linaro.org>
Thu, 28 Jan 2021 17:55:45 +0000 (17:55 +0000)
commit31a0ab9213f780d2fa1da6e4879df214c0f247f9
treede4a0fb5a0a5ace648e5aa5fd9aef312bb99012c
parente28bd09498bb8ee0dbb35ee213c1127b80ade00c
arm: Adjust cost of vector of constant zero

Neon vector comparisons have a dedicated version when comparing with
constant zero: it means its cost is free.

Adjust the cost in arm_rtx_costs_internal accordingly, for Neon only,
since MVE does not support this.

2021-01-28  Christophe Lyon  <christophe.lyon@linaro.org>

gcc/
PR target/98730
* config/arm/arm.c (arm_rtx_costs_internal): Adjust cost of vector
of constant zero for comparisons.

gcc/testsuite/
PR target/98730
* gcc.target/arm/simd/vceqzq_p64.c: Update expected result.
gcc/config/arm/arm.c
gcc/testsuite/gcc.target/arm/simd/vceqzq_p64.c