Skip to content

Commit

Permalink
Check the VL in bytes instead of bits (dotnet#104191)
Browse files Browse the repository at this point in the history
  • Loading branch information
kunalspathak authored Jun 29, 2024
1 parent 99e94ce commit bceb989
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/coreclr/vm/codeman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1514,9 +1514,9 @@ void EEJitManager::SetCpuInfo()
uint32_t maxVectorTLength = (maxVectorTBitWidth / 8);
uint64_t sveLengthFromOS = GetSveLengthFromOS();

// For now, enable SVE only when the system vector length is 128-bits
// For now, enable SVE only when the system vector length is 16 bytes (128-bits)
// TODO: https://github.com/dotnet/runtime/issues/101477
if (sveLengthFromOS == 128)
if (sveLengthFromOS == 16)
// if ((maxVectorTLength >= sveLengthFromOS) || (maxVectorTBitWidth == 0))
{
CPUCompileFlags.Set(InstructionSet_Sve);
Expand Down

0 comments on commit bceb989

Please sign in to comment.