Like we already do for SUB and XOR. Signed-off-by: Richard Henderson <r...@twiddle.net> --- tcg/optimize.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/tcg/optimize.c b/tcg/optimize.c index cdfc746..a703f8c 100644 --- a/tcg/optimize.c +++ b/tcg/optimize.c @@ -945,6 +945,7 @@ static TCGArg *tcg_constant_folding(TCGContext *s, uint16_t *tcg_opc_ptr, /* Simplify expression for "op r, a, a => movi r, 0" cases */ switch (op) { + CASE_OP_32_64(andc): CASE_OP_32_64(sub): CASE_OP_32_64(xor): if (temps_are_copies(args[1], args[2])) { -- 1.8.5.3