Add docs and tests for copy_special instruction. Fixes encoding issue that tests revealed.

This commit is contained in:
Tyler McMullen
2017-12-01 18:01:00 -08:00
committed by Jakob Stoklund Olesen
parent 4eb9a54096
commit 3b1b33e0ac
6 changed files with 41 additions and 4 deletions

View File

@@ -232,7 +232,7 @@ enc_i32_i64(x86.push, r.pushq, 0x50)
enc_i32_i64(x86.pop, r.popq, 0x58)
# Copy Special
enc_i64(base.copy_special, r.copysp, 0x89, w=1)
I64.enc(base.copy_special, *r.copysp.rex(0x89, w=1))
I32.enc(base.copy_special, *r.copysp(0x89))
# Adjust SP Imm