[02/12] @fix_trunc<mode>si2_fprs

Message ID ce3b559bcdadd44d8c0fda7ca9b91622495a999e.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 (fix_trunc<mode>si2_fprs): Make this a
	parameterized name.
	(fix_trunc<mode>si2): Use that name.  Simplify.

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

-- 
1.8.3.1

Patch

diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md
index 63823c4..48ead5e 100644
--- a/gcc/config/rs6000/rs6000.md
+++ b/gcc/config/rs6000/rs6000.md
@@ -7969,17 +7969,13 @@  (define_expand "fix_trunc<mode>si2"
     {
       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))