From da29b9330adcb9d7ffd3ede2f567116d83664f15 Mon Sep 17 00:00:00 2001 From: Segher Boessenkool Date: Mon, 1 Jul 2019 20:36:34 +0200 Subject: [PATCH] rs6000.md (fix_truncsi2_fprs): Make this a parameterized name. @fix_truncsi2_fprs * config/rs6000/rs6000.md (fix_truncsi2_fprs): Make this a parameterized name. (fix_truncsi2): Use that name. Simplify. From-SVN: r272896 --- gcc/ChangeLog | 6 ++++++ gcc/config/rs6000/rs6000.md | 8 ++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c158a0880d9..03e8dab3c49 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-07-01 Segher Boessenkool + + * config/rs6000/rs6000.md (fix_truncsi2_fprs): Make this a + parameterized name. + (fix_truncsi2): Use that name. Simplify. + 2019-07-01 Segher Boessenkool * config/rs6000/rs6000.md (neg2): Make this a parameterized name. diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 233b896472d..f011035e88d 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -7975,17 +7975,13 @@ { if (FLOAT128_IEEE_P (mode)) rs6000_expand_float128_convert (op0, op1, false); - else if (mode == TFmode) - emit_insn (gen_fix_trunctfsi2_fprs (op0, op1)); - else if (mode == IFmode) - emit_insn (gen_fix_truncifsi2_fprs (op0, op1)); else - gcc_unreachable (); + emit_insn (gen_fix_truncsi2_fprs (mode, op0, op1)); DONE; } }) -(define_expand "fix_truncsi2_fprs" +(define_expand "@fix_truncsi2_fprs" [(parallel [(set (match_operand:SI 0 "gpc_reg_operand") (fix:SI (match_operand:IBM128 1 "gpc_reg_operand"))) (clobber (match_dup 2)) -- 2.30.2