Skip to content

Commit 6bbccb4

Browse files
Fixing type.
1 parent d50aa94 commit 6bbccb4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/coreclr/jit/lsraxarch.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3051,8 +3051,8 @@ int LinearScan::BuildCast(GenTreeCast* cast)
30513051
buildInternalRegisterUses();
30523052
SingleTypeRegSet dstcandidates = RBM_NONE;
30533053
// if (varTypeUsesIntReg(castType) && cast->GetRegNum() == REG_NA)
3054-
if (varTypeIsFloating(srcType) && !varTypeIsFloating(castType) ||
3055-
(varTypeUsesIntReg(castType) && cast->GetRegNum() == REG_NA))
3054+
if ((varTypeIsFloating(srcType) && !varTypeIsFloating(castType)) ||
3055+
((varTypeUsesIntReg(castType) && cast->GetRegNum() == REG_NA)))
30563056
{
30573057
dstcandidates = BuildApxIncompatibleGPRMask(cast, true);
30583058
}

src/coreclr/jit/register.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ REGALIAS(EDI, RDI)
8585

8686
#ifdef TARGET_AMD64
8787
#define XMMBASE 32
88-
#define XMMMASK(x) ((int64_t)(1) << ((x)+XMMBASE))
88+
#define XMMMASK(x) (1ULL << (XMMBASE+(x)))
8989

9090
#define KBASE 64
91-
#define KMASK(x) ((int64_t)(1) << ((x)))
91+
#define KMASK(x) (1ULL << ((x)))
9292

9393
#else // !TARGET_AMD64
9494
#define XMMBASE 8

0 commit comments

Comments
 (0)