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

* config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
parameterized name.
(fix_trunc<mode>si2): Use that name.  Simplify.

From-SVN: r272896

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

index c158a0880d929e74bc7cd78ac4c1422fb52d9083..03e8dab3c4958856de3179843aa109501ba892ed 100644 (file)
@@ -1,3 +1,9 @@
+2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
+
+       * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
+       parameterized name.
+       (fix_trunc<mode>si2): Use that name.  Simplify.
+
 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
 
        * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
index 233b896472ddcc167c878dabd5d85a96d7c97d41..f011035e88dc3407a6c20a7e9d48c8dfe6a4d74c 100644 (file)
     {
       if (FLOAT128_IEEE_P (<MODE>mode))
        rs6000_expand_float128_convert (op0, op1, false);
-      else if (<MODE>mode == TFmode)
-       emit_insn (gen_fix_trunctfsi2_fprs (op0, op1));
-      else if (<MODE>mode == IFmode)
-       emit_insn (gen_fix_truncifsi2_fprs (op0, op1));
       else
-       gcc_unreachable ();
+       emit_insn (gen_fix_truncsi2_fprs (<MODE>mode, op0, op1));
       DONE;
     }
 })
 
-(define_expand "fix_trunc<mode>si2_fprs"
+(define_expand "@fix_trunc<mode>si2_fprs"
   [(parallel [(set (match_operand:SI 0 "gpc_reg_operand")
                   (fix:SI (match_operand:IBM128 1 "gpc_reg_operand")))
              (clobber (match_dup 2))