From c3125141892abaa238ea1f87fcf264ffa031d144 Mon Sep 17 00:00:00 2001 From: Dhruv Maroo Date: Mon, 23 Jan 2023 15:47:50 +0530 Subject: [PATCH] Remove unecessary set in `test` instruction --- librz/analysis/arch/x86/x86_il.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/librz/analysis/arch/x86/x86_il.c b/librz/analysis/arch/x86/x86_il.c index 0d122f521c..23038216ef 100644 --- a/librz/analysis/arch/x86/x86_il.c +++ b/librz/analysis/arch/x86/x86_il.c @@ -3468,11 +3468,10 @@ IL_LIFTER(sub) { */ IL_LIFTER(test) { RzILOpEffect *res = SETL("_res", LOGAND(x86_il_get_op(0), x86_il_get_op(1))); - RzILOpEffect *test = x86_il_set_op(0, VARL("_res")); RzILOpEffect *res_flags = x86_il_set_result_flags(VARL("_res")); RzILOpEffect *arith_flags = SEQ2(SETG(EFLAGS(CF), IL_FALSE), SETG(EFLAGS(OF), IL_FALSE)); - return SEQ4(res, test, res_flags, arith_flags); + return SEQ3(res, res_flags, arith_flags); } /**