On Sun, May 29, 2022 at 4:00 AM Takayuki 'January June' Suwa
wrote:
>
> In Xtensa ISA, there is no single machine instruction that calculates unary
> bitwise negation. But a few optimizers assume that bitwise negation can be
> done by a single insn.
>
> As a result, '((x < 0) ? ~x : x)' cannot be
In Xtensa ISA, there is no single machine instruction that calculates unary
bitwise negation. But a few optimizers assume that bitwise negation can be
done by a single insn.
As a result, '((x < 0) ? ~x : x)' cannot be optimized to '(x ^ (x >> 31))'
ever before, for example.
This patch relaxes s