From 1e2c6148644a7f755a92f33f6bd1b840ec3b0ea2 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 1 Nov 2001 22:06:08 +0000 Subject: [PATCH] Support floating point numbers in expodential form so that small numbers don't get truncated, which broke the health benchmark git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1087 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AsmParser/Lexer.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/AsmParser/Lexer.l b/lib/AsmParser/Lexer.l index b4910ec5172..c8e7b270126 100644 --- a/lib/AsmParser/Lexer.l +++ b/lib/AsmParser/Lexer.l @@ -111,7 +111,7 @@ NInteger -[0-9]+ /* FPConstant - A Floating point constant. TODO: Expand lexer to support 10e50 FP constant notation */ -FPConstant -?[0-9]+[.][0-9]* +FPConstant [-+]?[0-9]+[.][0-9]*([eE][-+]?[0-9]+)? %%