Add support for parsing .float

llvm-svn: 124485
This commit is contained in:
Roman Divacky 2011-01-28 14:20:32 +00:00
parent ed1ae86ac6
commit 7e9e290952
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