mirror of
https://github.com/corda/corda.git
synced 2025-01-09 06:23:04 +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) {
|
switch (size) {
|
||||||
case 1:
|
case 1:
|
||||||
rex(c);
|
rex(c);
|
||||||
if (BytesPerWord == 8) {
|
c->code.append(0x0f);
|
||||||
c->code.append(0x0f);
|
|
||||||
}
|
|
||||||
c->code.append(0xbe);
|
c->code.append(0xbe);
|
||||||
c->code.append(0xc0 | (b->low << 3) | a->low);
|
c->code.append(0xc0 | (b->low << 3) | a->low);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
rex(c);
|
rex(c);
|
||||||
if (BytesPerWord == 8) {
|
c->code.append(0x0f);
|
||||||
c->code.append(0x0f);
|
|
||||||
}
|
|
||||||
c->code.append(0xbf);
|
c->code.append(0xbf);
|
||||||
c->code.append(0xc0 | (b->low << 3) | a->low);
|
c->code.append(0xc0 | (b->low << 3) | a->low);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user