forked from OSchip/llvm-project
[X86] Make conversion of feature bits into a mask explicitly unsigned by using 1U instead of 1.
llvm-svn: 347517
This commit is contained in:
parent
62e5924dd6
commit
428caa398c
|
@ -462,12 +462,12 @@ static void getAvailableFeatures(unsigned ECX, unsigned EDX, unsigned MaxLeaf,
|
|||
unsigned Features2 = 0;
|
||||
unsigned EAX, EBX;
|
||||
|
||||
#define setFeature(F) \
|
||||
do { \
|
||||
if (F < 32) \
|
||||
Features |= 1 << (F & 0x1f) \
|
||||
else if (F < 64) \
|
||||
Features2 |= 1 << (F & 0x1f); \
|
||||
#define setFeature(F) \
|
||||
do { \
|
||||
if (F < 32) \
|
||||
Features |= 1U << (F & 0x1f) \
|
||||
else if (F < 64) \
|
||||
Features2 |= 1U << ((F - 32) & 0x1f); \
|
||||
} while (0)
|
||||
|
||||
if ((EDX >> 15) & 1)
|
||||
|
|
Loading…
Reference in New Issue