Avoid #pragma intrinsic(_mm_prefetch) on Arm64EC (and other platforms
without SSE)

Closes #1575

PiperOrigin-RevId: 586009018
Change-Id: Icc34c1201268303dde96bfbb067506b861754b3a
diff --git a/absl/base/prefetch.h b/absl/base/prefetch.h
index 98b3bf9..eb40a44 100644
--- a/absl/base/prefetch.h
+++ b/absl/base/prefetch.h
@@ -31,11 +31,12 @@
 #include <xmmintrin.h>
 #endif
 
-#if defined(_MSC_VER) && _MSC_VER >= 1900 && \
-    (defined(_M_X64) || defined(_M_IX86))
+#if defined(_MSC_VER)
 #include <intrin.h>
+#if defined(ABSL_INTERNAL_HAVE_SSE)
 #pragma intrinsic(_mm_prefetch)
 #endif
+#endif
 
 namespace absl {
 ABSL_NAMESPACE_BEGIN