From c8f54b580a2726b54da3b60954f5cbe3641b32b1 Mon Sep 17 00:00:00 2001 From: Joni Aromaa Date: Thu, 21 Apr 2022 17:39:24 +0300 Subject: [PATCH] Fix ILCompiler using wrong ISA for LZCNT (#68324) --- .../Compiler/HardwareIntrinsicHelpers.Aot.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/HardwareIntrinsicHelpers.Aot.cs b/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/HardwareIntrinsicHelpers.Aot.cs index 880b99d0107..86febba0a95 100644 --- a/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/HardwareIntrinsicHelpers.Aot.cs +++ b/src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/HardwareIntrinsicHelpers.Aot.cs @@ -134,7 +134,7 @@ public static int FromInstructionSet(InstructionSet instructionSet) InstructionSet.X64_BMI2 => Bmi2, InstructionSet.X64_BMI2_X64 => Bmi2, InstructionSet.X64_LZCNT => Lzcnt, - InstructionSet.X64_LZCNT_X64 => Popcnt, + InstructionSet.X64_LZCNT_X64 => Lzcnt, InstructionSet.X64_AVXVNNI => AvxVnni, InstructionSet.X64_AVXVNNI_X64 => AvxVnni, -- GitLab