HomePhabricator

Fix APFloat from string conversion for Inf

Authored by skatkov on Oct 19 2017, 4:16 AM.

Description

Fix APFloat from string conversion for Inf

The method IEEEFloat::convertFromStringSpecials() does not recognize
the "+Inf" and "-Inf" strings but these strings are printed for
the double Infinities by the IEEEFloat::toString().

This patch adds the "+Inf" and "-Inf" strings to the list of recognized
patterns in IEEEFloat::convertFromStringSpecials().

Reviewers: sberg, bogner, majnemer, timshen, rnk, skatkov, gottesmm, bkramer, scanon
Reviewed By: skatkov
Subscribers: apilipenko, reames, llvm-commits
Differential Revision: https://reviews.llvm.org/D38030

llvm-svn: 316156

Details

Committed
skatkovOct 19 2017, 4:16 AM
Reviewer
skatkov
Differential Revision
D38030: Fix APFloat from string conversion for Inf
Parents
rG7bf71008aa69: [ARM GlobalISel] Fix liveins in test. NFC
Branches
Unknown
Tags
Unknown