Compare to an unsigned literal to avoid a -Wsign-compare warning.
llvm-svn: 272459
diff --git a/llvm/lib/Target/X86/X86ShuffleDecodeConstantPool.cpp b/llvm/lib/Target/X86/X86ShuffleDecodeConstantPool.cpp
index f4a3461..a0b64e7 100644
--- a/llvm/lib/Target/X86/X86ShuffleDecodeConstantPool.cpp
+++ b/llvm/lib/Target/X86/X86ShuffleDecodeConstantPool.cpp
@@ -207,7 +207,7 @@
// 10b 1 Zero.
// 11b 0 Zero.
// 11b 1 Source selected by Selector index.
- if ((M2Z & 0x2) != 0 && MatchBit != (M2Z & 0x1)) {
+ if ((M2Z & 0x2) != 0u && MatchBit != (M2Z & 0x1)) {
ShuffleMask.push_back(SM_SentinelZero);
continue;
}