From: Segher Boessenkool Date: Mon, 4 Jun 2018 16:36:24 +0000 (+0200) Subject: rs6000: Fix absif2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7638d8b640a214e3a34b3bcb68ba0bd59d99bc1e;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 78541036ba9..6f3e6543b8f 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 68c0f3af410..fc526d020a8 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;