Add support for parsing .float

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124485 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Roman Divacky 2011-01-28 14:20:32 +00:00
parent 468ee0a90d
commit 14e66553d5
2 changed files with 4 additions and 1 deletions

View File

@ -985,7 +985,7 @@ bool AsmParser::ParseStatement() {
return ParseDirectiveValue(8);
if (IDVal == ".8byte")
return ParseDirectiveValue(8);
if (IDVal == ".single")
if (IDVal == ".single" || IDVal == ".float")
return ParseDirectiveRealValue(APFloat::IEEEsingle);
if (IDVal == ".double")
return ParseDirectiveRealValue(APFloat::IEEEdouble);

View File

@ -5,6 +5,9 @@
# CHECK: .long 1077936128
# CHECK: .long 1082549862
.single 1.2455, +2.3, 3, + 4.2
# CHECK: .long 1067928519
.float 1.307
# CHECK: .quad 4617315517961601024
# CHECK: .quad 4597526701198935065