From: Segher Boessenkool Date: Wed, 20 Nov 2019 13:38:52 +0000 (+0100) Subject: rs6000: Fix UNORDERED without NaNs, for DFP (PR92573) X-Git-Tag: upstream/12.2.0~20171 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bcb4b4b4baad38d0a9ac353822506fa1d7fb6b25;p=platform%2Fupstream%2Fgcc.git rs6000: Fix UNORDERED without NaNs, for DFP (PR92573) This is the analogue of r278103, but for DFP. PR target/92573 * config/rs6000/dfp.md (dfptstsfi__ for DFP_TEST and DDTD): Handle UNORDERED if !HONOR_NANS. From-SVN: r278497 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 79b8210..dc377af 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-11-20 Segher Boessenkool + + PR target/92573 + * config/rs6000/dfp.md (dfptstsfi__ for DFP_TEST and DDTD): + Handle UNORDERED if !HONOR_NANS. + 2019-11-20 Jan Hubicka * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ... diff --git a/gcc/config/rs6000/dfp.md b/gcc/config/rs6000/dfp.md index 659b3c9..687858c 100644 --- a/gcc/config/rs6000/dfp.md +++ b/gcc/config/rs6000/dfp.md @@ -289,6 +289,12 @@ ] "TARGET_P9_MISC" { + if ( == UNORDERED && !HONOR_NANS (mode)) + { + emit_move_insn (operands[0], const0_rtx); + DONE; + } + operands[3] = gen_reg_rtx (CCFPmode); })