From c60c12fb10d49fbd7fbdc8e8ddc3134e16e0d1e7 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Tue, 23 Jul 2019 14:04:54 +0000 Subject: [PATCH] Fix MSVC warning about extending a uint32_t shift result to uint64_t. NFCI. llvm-svn: 366808 --- llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp b/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp index 73aff33..a5098f4 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp +++ b/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp @@ -4502,9 +4502,9 @@ void AMDGPUTargetLowering::computeKnownBitsForTargetNode( Known.One |= ((LHSKnown.One.getZExtValue() >> SelBits) & 0xff) << I; Known.Zero |= ((LHSKnown.Zero.getZExtValue() >> SelBits) & 0xff) << I; } else if (SelBits == 0x0c) { - Known.Zero |= 0xff << I; + Known.Zero |= 0xFFull << I; } else if (SelBits > 0x0c) { - Known.One |= 0xff << I; + Known.One |= 0xFFull << I; } Sel >>= 8; } -- 2.7.4