diff options
| author | Michael Munday <mike.munday@lowrisc.org> | 2023-07-01 00:01:26 +0100 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2023-07-05 22:05:30 +0000 |
| commit | c8dad424bf01df69af729845acc151a66b87d594 (patch) | |
| tree | 0423a6e2afa8c95460eb82c11af8aae841995f9b /test/codegen | |
| parent | cd6676126b7e663e6202e98e2f235fff20d5e858 (diff) | |
| download | go-c8dad424bf01df69af729845acc151a66b87d594.tar.xz | |
math: fix portable FMA when x*y < 0 and x*y == -z
When x*y == -z the portable implementation of FMA copied the sign
bit from x*y into the result. This meant that when x*y == -z and
x*y < 0 the result was -0 which is incorrect.
Fixes #61130.
Change-Id: Ib93a568b7bdb9031e2aedfa1bdfa9bddde90851d
Reviewed-on: https://go-review.googlesource.com/c/go/+/507376
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: Michael Munday <mike.munday@lowrisc.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Joedian Reid <joedian@golang.org>
Diffstat (limited to 'test/codegen')
0 files changed, 0 insertions, 0 deletions
