From ec26512503c854cdb09d5b6397e041644149eb04 Mon Sep 17 00:00:00 2001 From: Segher Boessenkool Date: Fri, 31 Aug 2018 10:52:13 +0200 Subject: [PATCH] rs6000: Make lrounddi2 depend on TARGET_FPRND (PR86684) TARGET_FPRND should be on for everything ISA 2.04 and later, and TARGET_VSX implies ISA 2.06 or later; but it is possible to disable TARGET_FPRND (separately via -mno-fprnd, but also implicitly) currently, and then things fall down. This patch makes things not fall down. PR target/86684 PR target/87149 * config/rs6000/rs6000.md (lrounddi2): Gate on TARGET_FPRND. From-SVN: r264011 --- gcc/ChangeLog | 6 ++++++ gcc/config/rs6000/rs6000.md | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f1be88bc061..3d2be97952b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-08-31 Segher Boessenkool + + PR target/86684 + PR target/87149 + * config/rs6000/rs6000.md (lrounddi2): Gate on TARGET_FPRND. + 2018-08-31 Jakub Jelinek PR middle-end/87138 diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 49e209072a6..c4ef8785c39 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -5985,7 +5985,7 @@ (set (match_operand:DI 0 "gpc_reg_operand") (unspec:DI [(match_dup 2)] UNSPEC_FCTID))] - "TARGET_HARD_FLOAT && TARGET_VSX" + "TARGET_HARD_FLOAT && TARGET_VSX && TARGET_FPRND" { operands[2] = gen_reg_rtx (mode); }) -- 2.30.2