mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-13 14:47:00 +00:00
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:
parent
468ee0a90d
commit
14e66553d5
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user