|
| From: | Richard Henderson |
| Subject: | Re: [PATCH v2 12/30] tcg/loongarch64: Implement not/and/or/xor/nor/andc/orc/eqv ops |
| Date: | Tue, 21 Sep 2021 21:35:27 -0700 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 |
On 9/21/21 1:18 PM, WANG Xuerui wrote:
+ case INDEX_op_eqv_i32:
+ case INDEX_op_eqv_i64:
+ if (c2) {
+ /* guaranteed to fit due to constraint */
+ tcg_out_opc_xori(s, a0, a1, ~a2);
+ } else {
+ tcg_out_opc_nor(s, a0, a2, TCG_REG_ZERO);
+ tcg_out_opc_xor(s, a0, a1, a0);
+ }
+ break;
You don't actually have eqv (xnor), so don't pretend that you do. The middle-end will expand this as xor + not on its own.
Otherwise, Reviewed-by: Richard Henderson <richard.henderson@linaro.org> r~
| [Prev in Thread] | Current Thread | [Next in Thread] |