aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSegher Boessenkool <segher@kernel.crashing.org>2018-06-04 18:36:24 +0200
committerSegher Boessenkool <segher@gcc.gnu.org>2018-06-04 18:36:24 +0200
commit7638d8b640a214e3a34b3bcb68ba0bd59d99bc1e (patch)
treeca9639aceefe6c7a6a637d0578f09366d43d574a
parent389f775789f85f242199ef76bf5d0e2b1927c00a (diff)
downloadgcc-7638d8b640a214e3a34b3bcb68ba0bd59d99bc1e.zip
gcc-7638d8b640a214e3a34b3bcb68ba0bd59d99bc1e.tar.gz
gcc-7638d8b640a214e3a34b3bcb68ba0bd59d99bc1e.tar.bz2
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 (abs<mode>2 for FLOAT128): Handle IFmode. From-SVN: r261158
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/rs6000/rs6000.md2
2 files changed, 5 insertions, 1 deletions
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 <segher@kernel.crashing.org>
+
+ * config/rs6000/rs6000.md (abs<mode>2 for FLOAT128): Handle IFmode.
+
2018-06-04 Richard Sandiford <richard.sandiford@linaro.org>
* 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>mode == TFmode)
emit_insn (gen_abstf2_internal (operands[0], operands[1], label));
- else if (<MODE>mode == TFmode)
+ else if (<MODE>mode == IFmode)
emit_insn (gen_absif2_internal (operands[0], operands[1], label));
else
FAIL;