* soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
commit0471b3049d96a68eae85a5de9b01ce666a304fa9
authorJakub Jelinek <jakub@redhat.com>
Mon, 15 Jan 2007 23:43:04 +0000 (15 23:43 +0000)
committerJakub Jelinek <jakub@redhat.com>
Mon, 15 Jan 2007 23:43:04 +0000 (15 23:43 +0000)
treec0cea5b208d8ff8f46eb3b6008959b268012bf51
parent61fd932de0be50381ff54a9ce38070ebc7203602
* soft-fp/op-common.h (FP_TRUNC): When truncating a NaN, clear
workbits in semi-raw fraction.

* math/test-misc.c: Add new tests.

* math/basic-test.c: Include test-skeleton.c.
(TEST_TRUNC): Define.
(truncdfsf_test, trunctfsf_test, trunctfdf_test): New.
(main): Rename to ...
(do_test): ...this.  Run new tests.
(TEST_FUNCTION): Define.

[BZ #2749]
* soft-fp/op-4.h (__FP_FRAC_SUB_3, __FP_FRAC_SUB_4): Correct borrow
handling for high words.
* soft-fp/op-common.h (_FP_OVERFLOW_SEMIRAW): Always set inexact
and overflow for infinity.
ChangeLog
math/basic-test.c
math/test-misc.c
soft-fp/op-4.h
soft-fp/op-common.h