From 9319a0eec087a000fb3ed05d643275e64b01bea0 Mon Sep 17 00:00:00 2001 From: Tanner Gooding Date: Thu, 20 Jun 2024 13:49:57 -0700 Subject: [PATCH] Make sure we query get_IsSupported correctly --- src/coreclr/jit/hwintrinsic.cpp | 2 +- src/coreclr/jit/hwintrinsicxarch.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/coreclr/jit/hwintrinsic.cpp b/src/coreclr/jit/hwintrinsic.cpp index 0876114d5bcfa0..f3be218c9b889e 100644 --- a/src/coreclr/jit/hwintrinsic.cpp +++ b/src/coreclr/jit/hwintrinsic.cpp @@ -616,7 +616,7 @@ NamedIntrinsic HWIntrinsicInfo::lookupId(Compiler* comp, { isHardwareAcceleratedProp = true; } - else if (strcmp(methodName + 6, "IsSupported") == 0) + else if (strcmp(methodName + 6, "Supported") == 0) { isSupportedProp = true; } diff --git a/src/coreclr/jit/hwintrinsicxarch.cpp b/src/coreclr/jit/hwintrinsicxarch.cpp index d451fad31713b0..121137248816fa 100644 --- a/src/coreclr/jit/hwintrinsicxarch.cpp +++ b/src/coreclr/jit/hwintrinsicxarch.cpp @@ -163,7 +163,7 @@ static CORINFO_InstructionSet lookupInstructionSet(const char* className) { return InstructionSet_AVX2; } - else if (strncmp(className + 3, "512", 3)) + else if (strncmp(className + 3, "512", 3) == 0) { if (strcmp(className + 6, "BW") == 0) {