Skip to content

Commit 47eb962

Browse files
committed
Ensure PreferredVectorBitWidth is interpreted as a decimal
1 parent e7e7250 commit 47eb962

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/coreclr/jit/compiler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2266,7 +2266,7 @@ void Compiler::compSetProcessor()
22662266
// the total sum of flags is still valid.
22672267
#if defined(TARGET_XARCH)
22682268
// Get the preferred vector bitwidth, rounding down to the nearest multiple of 128-bits
2269-
uint32_t preferredVectorBitWidth = (JitConfig.PreferredVectorBitWidth() / 128) * 128;
2269+
uint32_t preferredVectorBitWidth = (ReinterpretHexAsDecimal(JitConfig.PreferredVectorBitWidth()) / 128) * 128;
22702270
uint32_t preferredVectorByteLength = preferredVectorBitWidth / 8;
22712271

22722272
if (instructionSetFlags.HasInstructionSet(InstructionSet_SSE))

src/coreclr/jit/jitconfigvalues.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ CONFIG_INTEGER(JitStressEvexEncoding, W("JitStressEvexEncoding"), 0) // Enable E
299299

300300
// clang-format off
301301

302-
CONFIG_INTEGER(PreferredVectorBitWidth, W("PreferredVectorBitWidth"), 0) // The preferred width, in bits, to use for any implicit vectorization emitted. A value less than 128 is treated as the system default.
302+
CONFIG_INTEGER(PreferredVectorBitWidth, W("PreferredVectorBitWidth"), 0) // The preferred decimal width, in bits, to use for any implicit vectorization emitted. A value less than 128 is treated as the system default.
303303

304304
//
305305
// Hardware Intrinsic ISAs; keep in sync with clrconfigvalues.h

0 commit comments

Comments
 (0)