From: Michael Meissner Date: Thu, 21 Jun 2018 22:49:37 +0000 (+0000) Subject: rs6000.md (neg2_internal): Use the correct mode to check whether the mode is... X-Git-Tag: basepoints/gcc-10~5769 X-Git-Url: https://gcc.gnu.org/git/?a=commitdiff_plain;h=e8ccf824115b6671d3ad62e26e8e9d8ee2884d50;p=gcc.git rs6000.md (neg2_internal): Use the correct mode to check whether the mode is IBM extended. 2018-06-21 Michael Meissner * config/rs6000/rs6000.md (neg2_internal): Use the correct mode to check whether the mode is IBM extended. From-SVN: r261869 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ff854f851e62..02d59040db38 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -3,6 +3,8 @@ * config/rs6000/rs6000.md (extendtfif2): Add missing 128-bit conversion insn that shows up when pr85657-3.c is compiled using IEEE 128-bit long double. + (neg2_internal): Use the correct mode to check whether the + mode is IBM extended. 2018-06-21 Eric Botcazou diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 3044e6eb4754..44d32d9edc8d 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -7933,7 +7933,7 @@ (define_insn "neg2_internal" [(set (match_operand:IBM128 0 "gpc_reg_operand" "=d") (neg:IBM128 (match_operand:IBM128 1 "gpc_reg_operand" "d")))] - "TARGET_HARD_FLOAT && FLOAT128_IBM_P (TFmode)" + "TARGET_HARD_FLOAT && FLOAT128_IBM_P (mode)" { if (REGNO (operands[0]) == REGNO (operands[1]) + 1) return "fneg %L0,%L1\;fneg %0,%1";