From bcb4b4b4baad38d0a9ac353822506fa1d7fb6b25 Mon Sep 17 00:00:00 2001 From: Segher Boessenkool Date: Wed, 20 Nov 2019 14:38:52 +0100 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/config/rs6000/dfp.md | 6 ++++++ 2 files changed, 12 insertions(+) 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); }) -- 2.7.4