Skip to content

Commit 16ff4c4

Browse files
tannergoodingmichaelgsharp
authored andcommitted
Expose the ConvertToIntegerNative APIs (dotnet#100993)
* Expose the ConvertToIntegerNative APIs for the floating-point types * Accelerate the ConvertToInteger and related APIs * Applying formatting patch * Fixing some tests for x86 and skipping some tests on Mono
1 parent 9f3e493 commit 16ff4c4

34 files changed

+1578
-194
lines changed

src/coreclr/jit/compiler.h

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3188,13 +3188,17 @@ class Compiler
31883188
CorInfoType simdBaseJitType,
31893189
unsigned simdSize);
31903190

3191-
#if defined(TARGET_XARCH)
3192-
GenTree* gtNewSimdCvtNode(var_types type,
3193-
GenTree* op1,
3194-
CorInfoType simdTargetBaseJitType,
3195-
CorInfoType simdSourceBaseJitType,
3196-
unsigned simdSize);
3197-
#endif //TARGET_XARCH
3191+
GenTree* gtNewSimdCvtNode(var_types type,
3192+
GenTree* op1,
3193+
CorInfoType simdTargetBaseJitType,
3194+
CorInfoType simdSourceBaseJitType,
3195+
unsigned simdSize);
3196+
3197+
GenTree* gtNewSimdCvtNativeNode(var_types type,
3198+
GenTree* op1,
3199+
CorInfoType simdTargetBaseJitType,
3200+
CorInfoType simdSourceBaseJitType,
3201+
unsigned simdSize);
31983202

31993203
GenTree* gtNewSimdCreateBroadcastNode(
32003204
var_types type, GenTree* op1, CorInfoType simdBaseJitType, unsigned simdSize);
@@ -5928,7 +5932,7 @@ class Compiler
59285932
void fgReplaceEhfSuccessor(BasicBlock* block, BasicBlock* oldSucc, BasicBlock* newSucc);
59295933

59305934
void fgRemoveEhfSuccessor(BasicBlock* block, const unsigned succIndex);
5931-
5935+
59325936
void fgRemoveEhfSuccessor(FlowEdge* succEdge);
59335937

59345938
void fgReplaceJumpTarget(BasicBlock* block, BasicBlock* oldTarget, BasicBlock* newTarget);

src/coreclr/jit/emit.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4020,6 +4020,8 @@ emitAttr emitter::emitGetBaseMemOpSize(instrDesc* id) const
40204020
case INS_subss:
40214021
case INS_ucomiss:
40224022
case INS_vbroadcastss:
4023+
case INS_vcvttss2usi32:
4024+
case INS_vcvttss2usi64:
40234025
case INS_vfmadd132ss:
40244026
case INS_vfmadd213ss:
40254027
case INS_vfmadd231ss:
@@ -4067,6 +4069,8 @@ emitAttr emitter::emitGetBaseMemOpSize(instrDesc* id) const
40674069
case INS_subsd:
40684070
case INS_ucomisd:
40694071
case INS_vbroadcastsd:
4072+
case INS_vcvttsd2usi32:
4073+
case INS_vcvttsd2usi64:
40704074
case INS_vfmadd132sd:
40714075
case INS_vfmadd213sd:
40724076
case INS_vfmadd231sd:

0 commit comments

Comments
 (0)