commit | bef256f49b77b17503b23699466d9bfc2f02d65f | [log] [tgz] |
---|---|---|
author | Stephen Canon <scanon@apple.com> | Sun Jun 08 16:53:31 2014 +0000 |
committer | Stephen Canon <scanon@apple.com> | Sun Jun 08 16:53:31 2014 +0000 |
tree | 97f574bcfe3cd4b3f4bfcdcb2b576f2dc7721550 | |
parent | c50f986b4d8ecbf3437c67e987e26e268ef5f06a [diff] |
APFloat: x - NaN needs to flip the signbit of NaN when x is a number. Because we don't have a separate negate( ) function, 0 - NaN does double-duty as the IEEE-754 negate( ) operation, which (unlike most FP ops) *does* attach semantic meaning to the signbit of NaN. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210428 91177308-0d34-0410-b5e6-96231b3b80d8