Fix x86-64 encoding of uextend.i64.i8

The non-REX encoding of movzbl requires one of the ABCD registers as input.
This commit is contained in:
Philip Craig
2019-04-05 20:40:22 +10:00
committed by Dan Gohman
parent 84fede890c
commit b74b49f7c6
2 changed files with 13 additions and 1 deletions

View File

@@ -631,7 +631,7 @@ X86_64.enc(base.uextend.i32.i16, *r.urm_noflags(0x0f, 0xb7))
# movzbq, encoded as movzbl because it's equivalent and shorter
X86_64.enc(base.uextend.i64.i8, *r.urm_noflags.rex(0x0f, 0xb6))
X86_64.enc(base.uextend.i64.i8, *r.urm_noflags(0x0f, 0xb6))
X86_64.enc(base.uextend.i64.i8, *r.urm_noflags_abcd(0x0f, 0xb6))
# movzwq, encoded as movzwl because it's equivalent and shorter
X86_64.enc(base.uextend.i64.i16, *r.urm_noflags.rex(0x0f, 0xb7))