From fe1cd076da74be8077509fab5a401060ce1c17a4 Mon Sep 17 00:00:00 2001 From: Maxime Chevalier-Boisvert Date: Thu, 10 Sep 2020 11:20:30 -0400 Subject: [PATCH] Added test for lea --- ujit_asm_tests.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ujit_asm_tests.c b/ujit_asm_tests.c index 72b5c829f5..3e2c28cca9 100644 --- a/ujit_asm_tests.c +++ b/ujit_asm_tests.c @@ -109,6 +109,7 @@ void run_tests() // lea //cb_set_pos(cb, 0); lea(cb, EBX, mem_opnd(32, RSP, 4)); check_bytes(cb, "8D5C2404"); + cb_set_pos(cb, 0); lea(cb, RDX, mem_opnd(64, RCX, 8)); check_bytes(cb, "488D5108"); // mov cb_set_pos(cb, 0); mov(cb, EAX, imm_opnd(7)); check_bytes(cb, "B807000000");