* [PATCH] rs6000: Make lround<mode>di2 depend on TARGET_FPRND (PR86684)
@ 2018-08-31 8:44 Segher Boessenkool
0 siblings, 0 replies; only message in thread
From: Segher Boessenkool @ 2018-08-31 8:44 UTC (permalink / raw)
To: gcc-patches; +Cc: dje.gcc, Segher Boessenkool
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.
Committing to trunk, and queued up for backports.
Segher
2018-08-31 Segher Boessenkool <segher@kernel.crashing.org>
PR target/86684
PR target/87149
* config/rs6000/rs6000.md (lround<mode>di2): Gate on TARGET_FPRND.
---
gcc/config/rs6000/rs6000.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md
index 49e2090..c4ef878 100644
--- a/gcc/config/rs6000/rs6000.md
+++ b/gcc/config/rs6000/rs6000.md
@@ -5985,7 +5985,7 @@ (define_expand "lround<mode>di2"
(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>mode);
})
--
1.8.3.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-08-31 8:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-31 8:44 [PATCH] rs6000: Make lround<mode>di2 depend on TARGET_FPRND (PR86684) Segher Boessenkool
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).