Commit ec265125 by Segher Boessenkool Committed by Segher Boessenkool

rs6000: Make lround<mode>di2 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 (lround<mode>di2): Gate on TARGET_FPRND.

From-SVN: r264011
parent 8e7dfe71
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.
2018-08-31 Jakub Jelinek <jakub@redhat.com>
PR middle-end/87138
......
......@@ -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>mode);
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment