[01/12] @neg<mode>2

Message ID 1b3393adbbed5efbb6e0464b486d6fd9f7e65719.1561994239.git.segher@kernel.crashing.org
State New
Headers show
Series
  • rs6000: Use parameterised names
Related show

Commit Message

Segher Boessenkool July 1, 2019, 5:59 p.m.
2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>

	* config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
	(allocate_stack): Use that name.  Simplify.

---
 gcc/config/rs6000/rs6000.md | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

-- 
1.8.3.1

Patch

diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md
index d0d272a..63823c4 100644
--- a/gcc/config/rs6000/rs6000.md
+++ b/gcc/config/rs6000/rs6000.md
@@ -2249,7 +2249,7 @@  (define_insn "subf<mode>3_carry_in_xx"
   [(set_attr "type" "add")])
 
 
-(define_insn "neg<mode>2"
+(define_insn "@neg<mode>2"
   [(set (match_operand:GPR 0 "gpc_reg_operand" "=r")
 	(neg:GPR (match_operand:GPR 1 "gpc_reg_operand" "r")))]
   ""
@@ -9810,10 +9810,7 @@  (define_expand "allocate_stack"
     {
       operands[1] = force_reg (Pmode, operands[1]);
       neg_op0 = gen_reg_rtx (Pmode);
-      if (TARGET_32BIT)
-	emit_insn (gen_negsi2 (neg_op0, operands[1]));
-      else
-	emit_insn (gen_negdi2 (neg_op0, operands[1]));
+      emit_insn (gen_neg2 (Pmode, neg_op0, operands[1]));
     }
   else
     neg_op0 = GEN_INT (-INTVAL (operands[1]));