rs6000.md (neg<mode>2_hw): Make this a parameterized name.
authorSegher Boessenkool <segher@kernel.crashing.org>
Mon, 1 Jul 2019 18:44:18 +0000 (20:44 +0200)
committerSegher Boessenkool <segher@gcc.gnu.org>
Mon, 1 Jul 2019 18:44:18 +0000 (20:44 +0200)
@neg<mode>2_hw

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

From-SVN: r272904

gcc/ChangeLog
gcc/config/rs6000/rs6000.md

index 80c8a2adf58ebe78179f050d912379f9373a3695..ac7b8da98f61dfe68f1bb5eeb3f5f0c9f1721c21 100644 (file)
@@ -1,3 +1,9 @@
+2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
+
+       * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
+       name.
+       (neg<mode>2): Use that name.  Simplify.
+
 2019-07-01  Uroš Bizjak  <ubizjak@gmail.com>
 
        * config/i386/i386.md ("isa" attribute): Add sse_noavx.
index 61d039916423666ecd4f0273cdc9768d6dd3f2a7..f3a6e554b35face8058642211b8ca3247f60d451 100644 (file)
   if (FLOAT128_IEEE_P (<MODE>mode))
     {
       if (TARGET_FLOAT128_HW)
-       {
-         if (<MODE>mode == TFmode)
-           emit_insn (gen_negtf2_hw (operands[0], operands[1]));
-         else if (<MODE>mode == KFmode)
-           emit_insn (gen_negkf2_hw (operands[0], operands[1]));
-         else
-           gcc_unreachable ();
-       }
+       emit_insn (gen_neg2_hw (<MODE>mode, operands[0], operands[1]));
       else if (TARGET_FLOAT128_TYPE)
        {
          if (<MODE>mode == TFmode)
   [(set_attr "type" "veccomplex")
    (set_attr "length" "8")])
 
-(define_insn "neg<mode>2_hw"
+(define_insn "@neg<mode>2_hw"
   [(set (match_operand:IEEE128 0 "altivec_register_operand" "=v")
        (neg:IEEE128
         (match_operand:IEEE128 1 "altivec_register_operand" "v")))]