aboutsummaryrefslogtreecommitdiff
path: root/ARMeilleure/CodeGen/X86/Assembler.cs
diff options
context:
space:
mode:
authorLDj3SNuD <35856442+LDj3SNuD@users.noreply.github.com>2020-07-09 02:45:24 +0200
committerGitHub <noreply@github.com>2020-07-09 10:45:24 +1000
commitc050994995268494d46a6cac1d4ffa931effa0f6 (patch)
treefe02cf3144ee2024bbc0119325ab237e8eba46f2 /ARMeilleure/CodeGen/X86/Assembler.cs
parent484eb645ae0611f60fae845ed011ed6115352e06 (diff)
Fix PPTC on Windows 7. (#1369)
* Fix PPTC on Windows 7. * Address gdkchan comment.
Diffstat (limited to 'ARMeilleure/CodeGen/X86/Assembler.cs')
-rw-r--r--ARMeilleure/CodeGen/X86/Assembler.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ARMeilleure/CodeGen/X86/Assembler.cs b/ARMeilleure/CodeGen/X86/Assembler.cs
index 99df3cb5..62ca05b2 100644
--- a/ARMeilleure/CodeGen/X86/Assembler.cs
+++ b/ARMeilleure/CodeGen/X86/Assembler.cs
@@ -914,7 +914,7 @@ namespace ARMeilleure.CodeGen.X86
WriteByte((byte)imm);
}
- else if (IsImm32(imm, type) && info.OpRMImm32 != BadOp)
+ else if (!source.Relocatable && IsImm32(imm, type) && info.OpRMImm32 != BadOp)
{
WriteOpCode(dest, null, null, type, info.Flags, info.OpRMImm32);