For PR1245:
[oota-llvm.git] / lib / AsmParser / Lexer.l
index 2950b1832ef41c281e93fe66b472c1d99bd4ffeb..3cd08e9aeeeb0820eaf93f3e2aa697dac9c6f701 100644 (file)
@@ -377,7 +377,7 @@ shufflevector   { RET_TOK(OtherOpVal, ShuffleVector, SHUFFLEVECTOR); }
                   }
                 }
 {NInteger}      { int len = strlen(yytext); 
-                  uint32_t numBits = (((len-1) * 64) / 19) + 1;
+                  uint32_t numBits = (((len-1) * 64) / 19) + 2;
                   APInt Tmp(numBits, yytext, len, 10);
                   uint32_t minBits = Tmp.getMinSignedBits();
                   if (minBits > 0 && minBits < numBits)