summaryrefslogtreecommitdiff
path: root/yjit_asm_tests.c
diff options
context:
space:
mode:
authorMaxime Chevalier-Boisvert <[email protected]>2021-05-11 16:33:28 -0400
committerAlan Wu <[email protected]>2021-10-20 18:19:35 -0400
commit5c2f74fc32951fc038dca465985a4859c517ef47 (patch)
tree8a5c59397131a6beb8c934ccd2f09588ac621e43 /yjit_asm_tests.c
parent54fe43b45ce65f0e2cde4d4e950303893a721ebd (diff)
Fix encoding of test x86 instruction
Diffstat (limited to 'yjit_asm_tests.c')
-rw-r--r--yjit_asm_tests.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/yjit_asm_tests.c b/yjit_asm_tests.c
index da58bdd3b5..7fc40d497b 100644
--- a/yjit_asm_tests.c
+++ b/yjit_asm_tests.c
@@ -323,6 +323,8 @@ void run_tests()
cb_set_pos(cb, 0); sub(cb, RAX, imm_opnd(2)); check_bytes(cb, "4883E802");
// test
+ cb_set_pos(cb, 0); test(cb, AL, AL); check_bytes(cb, "84C0");
+ cb_set_pos(cb, 0); test(cb, AX, AX); check_bytes(cb, "6685C0");
cb_set_pos(cb, 0); test(cb, CL, imm_opnd(8)); check_bytes(cb, "F6C108");
cb_set_pos(cb, 0); test(cb, DL, imm_opnd(7)); check_bytes(cb, "F6C207");
cb_set_pos(cb, 0); test(cb, RCX, imm_opnd(8)); check_bytes(cb, "F6C108");