Skip to content

Commit 799ac14

Browse files
committed
ensure fallback to naive implementations for estimate SIMD methods.
1 parent 1442b94 commit 799ac14

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/coreclr/jit/importercalls.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7545,6 +7545,20 @@ bool Compiler::IsTargetIntrinsic(NamedIntrinsic intrinsicName)
75457545

75467546
bool Compiler::IsIntrinsicImplementedByUserCall(NamedIntrinsic intrinsicName)
75477547
{
7548+
#if defined(TARGET_WASM)
7549+
// TODO-LLVM: Revisit when SIMD is enabled.
7550+
// We want the fallback LIR expansions for these.
7551+
switch(intrinsicName)
7552+
{
7553+
case NI_System_Math_MultiplyAddEstimate:
7554+
case NI_System_Math_ReciprocalEstimate:
7555+
case NI_System_Math_ReciprocalSqrtEstimate:
7556+
return false;
7557+
default:
7558+
break;
7559+
}
7560+
#endif //TARGET_WASM
7561+
75487562
// Currently, if a math intrinsic is not implemented by target-specific
75497563
// instructions, it will be implemented by a System.Math call. In the
75507564
// future, if we turn to implementing some of them with helper calls,

0 commit comments

Comments
 (0)