summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--amd64/amd64-codegen.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/amd64/amd64-codegen.h b/amd64/amd64-codegen.h
index 857c7ab..9dd3269 100644
--- a/amd64/amd64-codegen.h
+++ b/amd64/amd64-codegen.h
@@ -214,7 +214,7 @@ typedef union {
*(inst)++ = (unsigned char)0x83; \
x86_reg_emit ((inst), (opc), (reg)); \
x86_imm_emit8 ((inst), (imm)); \
- } else if ((reg) == X86_EAX) { \
+ } else if ((reg) == AMD64_RAX) { \
amd64_emit_rex(inst, size, 0, 0, 0); \
*(inst)++ = (((unsigned char)(opc)) << 3) + 5; \
x86_imm_emit32 ((inst), (imm)); \
OpenPOWER on IntegriCloud