From 418f186a4b49f604898c763ae631e62d3b2a11d0 Mon Sep 17 00:00:00 2001 From: Joerg Sonnenberger Date: Mon, 4 Apr 2011 21:38:17 +0000 Subject: [PATCH] Make OpcodeMask an unsigned long long literal to deal with overflow. llvm-svn: 128847 --- llvm/lib/Target/X86/X86InstrInfo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/X86/X86InstrInfo.h b/llvm/lib/Target/X86/X86InstrInfo.h index 39448cabb499..4625b4c986ab 100644 --- a/llvm/lib/Target/X86/X86InstrInfo.h +++ b/llvm/lib/Target/X86/X86InstrInfo.h @@ -449,7 +449,7 @@ namespace X86II { SSEDomainShift = SegOvrShift + 2, OpcodeShift = SSEDomainShift + 2, - OpcodeMask = 0xFF << OpcodeShift, + OpcodeMask = 0xFFULL << OpcodeShift, //===------------------------------------------------------------------===// /// VEX - The opcode prefix used by AVX instructions