diff options
author | Nick Clifton <nickc@redhat.com> | 2016-04-27 12:37:11 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2016-04-27 12:37:11 +0100 |
commit | 7881f69ee902b06433f071fd8cbdee1b401c9b76 (patch) | |
tree | 33d04de7a78c67dd72bfd6454d7815e120cf66ff /sim/rx/fpu.c | |
parent | 2cdad34c4fba2c6319584d6bb42b84020a9244ac (diff) | |
download | fsf-binutils-gdb-7881f69ee902b06433f071fd8cbdee1b401c9b76.zip fsf-binutils-gdb-7881f69ee902b06433f071fd8cbdee1b401c9b76.tar.gz fsf-binutils-gdb-7881f69ee902b06433f071fd8cbdee1b401c9b76.tar.bz2 |
Fix a typo in the check for SNANs in the RX simulator.
PR target/20000
* fpu.c (check_exceptions): Fix typo checking for signalling
NANs.
Diffstat (limited to 'sim/rx/fpu.c')
-rw-r--r-- | sim/rx/fpu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/rx/fpu.c b/sim/rx/fpu.c index d3f4bdb..aa7fd2d 100644 --- a/sim/rx/fpu.c +++ b/sim/rx/fpu.c @@ -433,7 +433,7 @@ check_exceptions (FP_Parts *a, FP_Parts *b, fp_t *c, FP_RAISE (V); if (a->type == FP_SNAN) *c = a->orig_value | 0x00400000; - else if (a->type == FP_SNAN) + else if (b->type == FP_SNAN) *c = b->orig_value | 0x00400000; else *c = 0x7fc00000; |