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

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

From-SVN: r272905

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

index ac7b8da98f61dfe68f1bb5eeb3f5f0c9f1721c21..b36c001d37c7e64911f7b07384584db3927ebf5a 100644 (file)
@@ -1,3 +1,9 @@
+2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
+
+       * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
+       name.
+       (abs<mode>2): Use that name.  Simplify.
+
 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
 
        * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
index f3a6e554b35face8058642211b8ca3247f60d451..0eec35ec866ee70e1e7a0e3afea6434fb75c35d2 100644 (file)
     {
       if (TARGET_FLOAT128_HW)
        {
-         if (<MODE>mode == TFmode)
-           emit_insn (gen_abstf2_hw (operands[0], operands[1]));
-         else if (<MODE>mode == KFmode)
-           emit_insn (gen_abskf2_hw (operands[0], operands[1]));
-         else
-           FAIL;
+         emit_insn (gen_abs2_hw (<MODE>mode, operands[0], operands[1]));
          DONE;
        }
       else if (TARGET_FLOAT128_TYPE)
    (set_attr "size" "128")])
 
 
-(define_insn "abs<mode>2_hw"
+(define_insn "@abs<mode>2_hw"
   [(set (match_operand:IEEE128 0 "altivec_register_operand" "=v")
        (abs:IEEE128
         (match_operand:IEEE128 1 "altivec_register_operand" "v")))]