treat 4-byte reg-to-reg moves as 8-byte moves on amd64 since the intention is to copy integer values verbatim; all tests now pass on amd64

This commit is contained in:
Joel Dice 2008-04-27 16:25:17 -06:00
parent 8be4cf8fa6
commit 505e0bd7db

View File

@ -616,8 +616,8 @@ moveRR(Context* c, unsigned size, Assembler::Register* a,
break;
case 8:
rex(c);
case 4:
rex(c);
c->code.append(0x89);
c->code.append(0xc0 | (a->low << 3) | b->low);
break;