Disable SIMD intrinsics for Vector128/64 on Arm64 (#77406)
authorFan Yang <52458914+fanyang-mono@users.noreply.github.com>
Tue, 25 Oct 2022 16:21:48 +0000 (12:21 -0400)
committerGitHub <noreply@github.com>
Tue, 25 Oct 2022 16:21:48 +0000 (12:21 -0400)
src/mono/mono/mini/simd-intrinsics.c

index 732e96b..55eaee2 100644 (file)
@@ -1111,6 +1111,11 @@ emit_sri_vector (MonoCompile *cfg, MonoMethod *cmethod, MonoMethodSignature *fsi
        if (!COMPILE_LLVM (cfg))
                return NULL;
 
+#ifdef TARGET_ARM64
+       if (!(cfg->compile_aot && cfg->full_aot && !cfg->interp))
+               return NULL;
+#endif
+
        int id = lookup_intrins (sri_vector_methods, sizeof (sri_vector_methods), cmethod);
        if (id == -1) {
                //check_no_intrinsic_cattr (cmethod);