]> gcc.gnu.org Git - gcc.git/commit
re PR middle-end/28796 (__builtin_nan() and __builtin_unordered() inconsistent)
authorRichard Guenther <rguenther@suse.de>
Tue, 24 Oct 2006 09:15:07 +0000 (09:15 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 24 Oct 2006 09:15:07 +0000 (09:15 +0000)
commit27d7d0422ce932e1f531fec5de9b81bced2f369b
tree7a70218041825ef460b80274878b0b9a76fd0182
parente1502f6e2de6e37603adb0e415a5d9847bfaf990
re PR middle-end/28796 (__builtin_nan() and __builtin_unordered() inconsistent)

2006-10-24  Richard Guenther  <rguenther@suse.de>

PR middle-end/28796
* builtins.c (fold_builtin_classify): Use HONOR_INFINITIES
and HONOR_NANS instead of MODE_HAS_INFINITIES and MODE_HAS_NANS
for deciding optimizations in consistency with fold-const.c
(fold_builtin_unordered_cmp): Likewise.

        * gcc.dg/pr28796-1.c: New testcase.
        * gcc.dg/pr28796-1.c: Likewise.

From-SVN: r118001
gcc/ChangeLog
gcc/builtins.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr28796-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr28796-2.c [new file with mode: 0644]
This page took 0.061888 seconds and 5 git commands to generate.