From 7638d8b640a214e3a34b3bcb68ba0bd59d99bc1e Mon Sep 17 00:00:00 2001 From: Segher Boessenkool Date: Mon, 4 Jun 2018 18:36:24 +0200 Subject: [PATCH] rs6000: Fix absif2 Without this patch absif2 always FAILs. There is no testcase for that, nor do we see it during bootstrap, but it is obvious. * config/rs6000/rs6000.md (abs2 for FLOAT128): Handle IFmode. From-SVN: r261158 --- gcc/ChangeLog | 4 ++++ gcc/config/rs6000/rs6000.md | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7854103..6f3e654 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2018-06-04 Segher Boessenkool + + * config/rs6000/rs6000.md (abs2 for FLOAT128): Handle IFmode. + 2018-06-04 Richard Sandiford * expr.c (expand_expr_real_1): Force the operand into memory if diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 68c0f3a..fc526d0 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -7980,7 +7980,7 @@ label = gen_label_rtx (); if (mode == TFmode) emit_insn (gen_abstf2_internal (operands[0], operands[1], label)); - else if (mode == TFmode) + else if (mode == IFmode) emit_insn (gen_absif2_internal (operands[0], operands[1], label)); else FAIL; -- 2.7.4