diff options
author | Michael Meissner <meissner@linux.ibm.com> | 2018-06-21 22:49:37 +0000 |
---|---|---|
committer | Michael Meissner <meissner@gcc.gnu.org> | 2018-06-21 22:49:37 +0000 |
commit | e8ccf824115b6671d3ad62e26e8e9d8ee2884d50 (patch) | |
tree | 063e2ab9bd10501c74420a4ef4e8ec6877e4bb86 /gcc | |
parent | 77f72c95fafee28af8a7cf46b3304b7f46e8c732 (diff) | |
download | gcc-e8ccf824115b6671d3ad62e26e8e9d8ee2884d50.zip gcc-e8ccf824115b6671d3ad62e26e8e9d8ee2884d50.tar.gz gcc-e8ccf824115b6671d3ad62e26e8e9d8ee2884d50.tar.bz2 |
rs6000.md (neg<mode>2_internal): Use the correct mode to check whether the mode is IBM extended.
2018-06-21 Michael Meissner <meissner@linux.ibm.com>
* config/rs6000/rs6000.md (neg<mode>2_internal): Use the correct
mode to check whether the mode is IBM extended.
From-SVN: r261869
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 2 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.md | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ff854f85..02d5904 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. + (neg<mode>2_internal): Use the correct mode to check whether the + mode is IBM extended. 2018-06-21 Eric Botcazou <ebotcazou@adacore.com> diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 3044e6e..44d32d9 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -7933,7 +7933,7 @@ (define_insn "neg<mode>2_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>mode)" { if (REGNO (operands[0]) == REGNO (operands[1]) + 1) return "fneg %L0,%L1\;fneg %0,%1"; |