mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
fix encoding reg-to-reg moves of one and two byte sizes
This commit is contained in:
parent
1b5f14d847
commit
90ae9a70ee
@ -630,18 +630,14 @@ moveRR(Context* c, unsigned size, Assembler::Register* a,
|
||||
switch (size) {
|
||||
case 1:
|
||||
rex(c);
|
||||
if (BytesPerWord == 8) {
|
||||
c->code.append(0x0f);
|
||||
}
|
||||
c->code.append(0x0f);
|
||||
c->code.append(0xbe);
|
||||
c->code.append(0xc0 | (b->low << 3) | a->low);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
rex(c);
|
||||
if (BytesPerWord == 8) {
|
||||
c->code.append(0x0f);
|
||||
}
|
||||
c->code.append(0x0f);
|
||||
c->code.append(0xbf);
|
||||
c->code.append(0xc0 | (b->low << 3) | a->low);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user