diff options
author | Haochen Gui <guihaoc@gcc.gnu.org> | 2022-05-09 17:34:23 +0800 |
---|---|---|
committer | Haochen Gui <guihaoc@gcc.gnu.org> | 2022-05-11 09:27:48 +0800 |
commit | 344e425340e3c8e4539b43bf8f661e02c5a5b9a0 (patch) | |
tree | 4575f1c2f3d4e4e040864eab3a71c95ce2c773ee /libcc1/marshall.cc | |
parent | e877898911574037af5aaa68ff6451ec5ced20e9 (diff) | |
download | gcc-344e425340e3c8e4539b43bf8f661e02c5a5b9a0.zip gcc-344e425340e3c8e4539b43bf8f661e02c5a5b9a0.tar.gz gcc-344e425340e3c8e4539b43bf8f661e02c5a5b9a0.tar.bz2 |
This patch skips constant folding for fmin/max when either argument is sNaN. According to C standard, fmin(sNaN, sNaN)= qNaN, fmin(sNaN, NaN) = qNaN.
gcc/
PR target/105414
* match.pd (minmax): Skip constant folding for fmin/fmax when both
arguments are sNaN or one is sNaN and another is NaN.
gcc/testsuite/
PR target/105414
* gcc.dg/pr105414.c: New.
Diffstat (limited to 'libcc1/marshall.cc')
0 files changed, 0 insertions, 0 deletions