Nit.
This commit is contained in:
parent
b901f7c918
commit
5c581ac24b
1 changed files with 14 additions and 14 deletions
|
@ -876,15 +876,15 @@ namespace ARMeilleure.Instructions
|
||||||
Operand longL = context.AddIntrinsicLong (Intrinsic.X86Cvtsd2si, opF); // opFL
|
Operand longL = context.AddIntrinsicLong (Intrinsic.X86Cvtsd2si, opF); // opFL
|
||||||
Operand res = context.VectorCreateScalar(longL);
|
Operand res = context.VectorCreateScalar(longL);
|
||||||
|
|
||||||
if (!scalar)
|
if (!scalar)
|
||||||
{
|
{
|
||||||
Operand opFH = context.AddIntrinsic (Intrinsic.X86Movhlps, res, opF); // res doesn't matter.
|
Operand opFH = context.AddIntrinsic (Intrinsic.X86Movhlps, res, opF); // res doesn't matter.
|
||||||
Operand longH = context.AddIntrinsicLong (Intrinsic.X86Cvtsd2si, opFH);
|
Operand longH = context.AddIntrinsicLong (Intrinsic.X86Cvtsd2si, opFH);
|
||||||
Operand resH = context.VectorCreateScalar(longH);
|
Operand resH = context.VectorCreateScalar(longH);
|
||||||
res = context.AddIntrinsic (Intrinsic.X86Movlhps, res, resH);
|
res = context.AddIntrinsic (Intrinsic.X86Movlhps, res, resH);
|
||||||
}
|
}
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Operand EmitSse2CvtInt64ToDoubleOp(ArmEmitterContext context, Operand op, bool scalar)
|
private static Operand EmitSse2CvtInt64ToDoubleOp(ArmEmitterContext context, Operand op, bool scalar)
|
||||||
|
@ -894,15 +894,15 @@ namespace ARMeilleure.Instructions
|
||||||
Operand longL = context.AddIntrinsicLong(Intrinsic.X86Cvtsi2si, op); // opL
|
Operand longL = context.AddIntrinsicLong(Intrinsic.X86Cvtsi2si, op); // opL
|
||||||
Operand res = context.AddIntrinsic (Intrinsic.X86Cvtsi2sd, context.VectorZero(), longL);
|
Operand res = context.AddIntrinsic (Intrinsic.X86Cvtsi2sd, context.VectorZero(), longL);
|
||||||
|
|
||||||
if (!scalar)
|
if (!scalar)
|
||||||
{
|
{
|
||||||
Operand opH = context.AddIntrinsic (Intrinsic.X86Movhlps, res, op); // res doesn't matter.
|
Operand opH = context.AddIntrinsic (Intrinsic.X86Movhlps, res, op); // res doesn't matter.
|
||||||
Operand longH = context.AddIntrinsicLong(Intrinsic.X86Cvtsi2si, opH);
|
Operand longH = context.AddIntrinsicLong(Intrinsic.X86Cvtsi2si, opH);
|
||||||
Operand resH = context.AddIntrinsic (Intrinsic.X86Cvtsi2sd, res, longH); // res doesn't matter.
|
Operand resH = context.AddIntrinsic (Intrinsic.X86Cvtsi2sd, res, longH); // res doesn't matter.
|
||||||
res = context.AddIntrinsic (Intrinsic.X86Movlhps, res, resH);
|
res = context.AddIntrinsic (Intrinsic.X86Movlhps, res, resH);
|
||||||
}
|
}
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void EmitSse2Scvtf(ArmEmitterContext context, bool scalar)
|
private static void EmitSse2Scvtf(ArmEmitterContext context, bool scalar)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue