Commit 5fba7efc by Segher Boessenkool Committed by Segher Boessenkool

rs6000: Handle unordered for xscmpexp[dq]p without NaNs (PR92449)


	* config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
	UNORDERED if !HONOR_NANS (DFmode).
	(xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
	if !HONOR_NANS (<MODE>mode).

From-SVN: r278103
parent e72763e2
2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
* config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
UNORDERED if !HONOR_NANS (DFmode).
(xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
if !HONOR_NANS (<MODE>mode).
2019-11-12 Jan Hubicka <hubicka@ucw.cz> 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
* ipa-cp.c (ignore_edge_p): Also look for optimize flag. * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
...@@ -4526,6 +4526,12 @@ ...@@ -4526,6 +4526,12 @@
(const_int 0)))] (const_int 0)))]
"TARGET_P9_VECTOR" "TARGET_P9_VECTOR"
{ {
if (<CODE> == UNORDERED && !HONOR_NANS (DFmode))
{
emit_move_insn (operands[0], const0_rtx);
DONE;
}
operands[3] = gen_reg_rtx (CCFPmode); operands[3] = gen_reg_rtx (CCFPmode);
}) })
...@@ -4554,6 +4560,12 @@ ...@@ -4554,6 +4560,12 @@
(const_int 0)))] (const_int 0)))]
"TARGET_P9_VECTOR" "TARGET_P9_VECTOR"
{ {
if (<CODE> == UNORDERED && !HONOR_NANS (<MODE>mode))
{
emit_move_insn (operands[0], const0_rtx);
DONE;
}
operands[3] = gen_reg_rtx (CCFPmode); operands[3] = gen_reg_rtx (CCFPmode);
}) })
......
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