Fix push/pop encoding for extended registers. Add copy_special encoding.

This commit is contained in:
Tyler McMullen
2017-11-27 13:30:11 -08:00
committed by Jakob Stoklund Olesen
parent b8275f5713
commit 32509ebacd
2 changed files with 16 additions and 1 deletions

View File

@@ -228,9 +228,14 @@ enc_both(base.fill.b1, r.fiSib32, 0x8b)
enc_both(base.regfill.b1, r.rfi32, 0x8b)
# Push and Pop
I64.enc(x86.push.i64, *r.pushq.rex(0x50))
I64.enc(x86.push.i64, *r.pushq(0x50))
I64.enc(x86.pop.i64, *r.popq.rex(0x58))
I64.enc(x86.pop.i64, *r.popq(0x58))
# Copy Special
I64.enc(base.copy_special, *r.copysp.rex(0x89))
#
# Float loads and stores.
#