From 90ae9a70ee41cc7a74e86989e40afa701206674c Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Mon, 28 Apr 2008 10:52:54 -0600 Subject: [PATCH] fix encoding reg-to-reg moves of one and two byte sizes --- src/x86.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/x86.cpp b/src/x86.cpp index bcbbdea3dd..4bd840b1c3 100644 --- a/src/x86.cpp +++ b/src/x86.cpp @@ -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;