aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-11-01 22:06:08 +0000
committerChris Lattner <sabre@nondot.org>2001-11-01 22:06:08 +0000
commit1e2c6148644a7f755a92f33f6bd1b840ec3b0ea2 (patch)
tree3c7cc3d077d46e51e7d0fbdfe597b1b604524581 /lib
parent6eaa457343c3682d68938893ffd689d9737e090f (diff)
downloadexternal_llvm-1e2c6148644a7f755a92f33f6bd1b840ec3b0ea2.zip
external_llvm-1e2c6148644a7f755a92f33f6bd1b840ec3b0ea2.tar.gz
external_llvm-1e2c6148644a7f755a92f33f6bd1b840ec3b0ea2.tar.bz2
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
Diffstat (limited to 'lib')
-rw-r--r--lib/AsmParser/Lexer.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AsmParser/Lexer.l b/lib/AsmParser/Lexer.l
index b4910ec..c8e7b27 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]+)?
%%