Commit e8ccf824 by Michael Meissner Committed by Michael Meissner

rs6000.md (neg<mode>2_internal): Use the correct mode to check whether the mode is IBM extended.

2018-06-21  Michael Meissner  <meissner@linux.ibm.com>

	* config/rs6000/rs6000.md (neg<mode>2_internal): Use the correct
	mode to check whether the mode is IBM extended.

From-SVN: r261869
parent 77f72c95
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
* config/rs6000/rs6000.md (extendtfif2): Add missing 128-bit * config/rs6000/rs6000.md (extendtfif2): Add missing 128-bit
conversion insn that shows up when pr85657-3.c is compiled using conversion insn that shows up when pr85657-3.c is compiled using
IEEE 128-bit long double. IEEE 128-bit long double.
(neg<mode>2_internal): Use the correct mode to check whether the
mode is IBM extended.
2018-06-21 Eric Botcazou <ebotcazou@adacore.com> 2018-06-21 Eric Botcazou <ebotcazou@adacore.com>
......
...@@ -7933,7 +7933,7 @@ ...@@ -7933,7 +7933,7 @@
(define_insn "neg<mode>2_internal" (define_insn "neg<mode>2_internal"
[(set (match_operand:IBM128 0 "gpc_reg_operand" "=d") [(set (match_operand:IBM128 0 "gpc_reg_operand" "=d")
(neg:IBM128 (match_operand:IBM128 1 "gpc_reg_operand" "d")))] (neg:IBM128 (match_operand:IBM128 1 "gpc_reg_operand" "d")))]
"TARGET_HARD_FLOAT && FLOAT128_IBM_P (TFmode)" "TARGET_HARD_FLOAT && FLOAT128_IBM_P (<MODE>mode)"
{ {
if (REGNO (operands[0]) == REGNO (operands[1]) + 1) if (REGNO (operands[0]) == REGNO (operands[1]) + 1)
return "fneg %L0,%L1\;fneg %0,%1"; return "fneg %L0,%L1\;fneg %0,%1";
......
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