Fix PPTC on Windows 7. (#1369)
* Fix PPTC on Windows 7. * Address gdkchan comment.
This commit is contained in:
parent
484eb645ae
commit
c050994995
6 changed files with 19 additions and 14 deletions
|
@ -31,7 +31,7 @@ namespace ARMeilleure.CodeGen.X86
|
|||
Operand src1 = operation.GetSource(0);
|
||||
Operand src2 = operation.GetSource(1);
|
||||
|
||||
if (src1.Kind == OperandKind.Constant && CodeGenCommon.IsLongConst(src1))
|
||||
if (src1.Kind == OperandKind.Constant && (src1.Relocatable || CodeGenCommon.IsLongConst(src1)))
|
||||
{
|
||||
Operand temp = Local(src1.Type);
|
||||
|
||||
|
@ -42,7 +42,7 @@ namespace ARMeilleure.CodeGen.X86
|
|||
operation.SetSource(0, temp);
|
||||
}
|
||||
|
||||
if (src2.Kind == OperandKind.Constant && CodeGenCommon.IsLongConst(src2))
|
||||
if (src2.Kind == OperandKind.Constant && (src2.Relocatable || CodeGenCommon.IsLongConst(src2)))
|
||||
{
|
||||
Operand temp = Local(src2.Type);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue