From 505e0bd7db9d47038fc892bf1fea7c41a7923574 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Sun, 27 Apr 2008 16:25:17 -0600 Subject: [PATCH] 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 --- src/x86.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/x86.cpp b/src/x86.cpp index 491adaee43..d9772160c5 100644 --- a/src/x86.cpp +++ b/src/x86.cpp @@ -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;