Skip to content

Commit

Permalink
Expose the ConvertToIntegerNative APIs (#100993)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
tannergooding authored Apr 24, 2024
1 parent 8017222 commit f55c5a8
Show file tree
Hide file tree
Showing 34 changed files with 1,578 additions and 194 deletions.
20 changes: 12 additions & 8 deletions src/coreclr/jit/compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -3188,13 +3188,17 @@ class Compiler
CorInfoType simdBaseJitType,
unsigned simdSize);

#if defined(TARGET_XARCH)
GenTree* gtNewSimdCvtNode(var_types type,
GenTree* op1,
CorInfoType simdTargetBaseJitType,
CorInfoType simdSourceBaseJitType,
unsigned simdSize);
#endif //TARGET_XARCH
GenTree* gtNewSimdCvtNode(var_types type,
GenTree* op1,
CorInfoType simdTargetBaseJitType,
CorInfoType simdSourceBaseJitType,
unsigned simdSize);

GenTree* gtNewSimdCvtNativeNode(var_types type,
GenTree* op1,
CorInfoType simdTargetBaseJitType,
CorInfoType simdSourceBaseJitType,
unsigned simdSize);

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

void fgRemoveEhfSuccessor(BasicBlock* block, const unsigned succIndex);

void fgRemoveEhfSuccessor(FlowEdge* succEdge);

void fgReplaceJumpTarget(BasicBlock* block, BasicBlock* oldTarget, BasicBlock* newTarget);
Expand Down
4 changes: 4 additions & 0 deletions src/coreclr/jit/emit.h
Original file line number Diff line number Diff line change
Expand Up @@ -4020,6 +4020,8 @@ emitAttr emitter::emitGetBaseMemOpSize(instrDesc* id) const
case INS_subss:
case INS_ucomiss:
case INS_vbroadcastss:
case INS_vcvttss2usi32:
case INS_vcvttss2usi64:
case INS_vfmadd132ss:
case INS_vfmadd213ss:
case INS_vfmadd231ss:
Expand Down Expand Up @@ -4067,6 +4069,8 @@ emitAttr emitter::emitGetBaseMemOpSize(instrDesc* id) const
case INS_subsd:
case INS_ucomisd:
case INS_vbroadcastsd:
case INS_vcvttsd2usi32:
case INS_vcvttsd2usi64:
case INS_vfmadd132sd:
case INS_vfmadd213sd:
case INS_vfmadd231sd:
Expand Down
Loading

0 comments on commit f55c5a8

Please sign in to comment.