|
| From: | Paolo Bonzini |
| Subject: | Re: [PATCH 06/29] tcg/optimize: Handle TCG_COND_TST{EQ,NE} |
| Date: | Fri, 27 Oct 2023 04:05:41 +0200 |
| User-agent: | Mozilla Thunderbird |
On 10/26/23 02:13, Richard Henderson wrote:
+
+ sh = ctz64(val);
+ ret = op->args[0];
+ src1 = op->args[1];
+ inv = cond == TCG_COND_TSTEQ;
+
+ if (neg && !inv && sext_opc) {
+ op->opc = sext_opc;
+ op->args[1] = src1;
+ op->args[2] = sh;
+ op->args[3] = 1;
+ neg = false;
This needs to check the validity of (sh,1) as arguments to the extract opcode (and perhaps the opposite transformation should be done in tcg_gen_extract, when creating a 1-bit extract on a target that does not support it).
Paolo
| [Prev in Thread] | Current Thread | [Next in Thread] |