summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>2018-06-25 11:40:14 +0000
committersegher <segher@138bc75d-0d04-0410-961f-82ee72b054a4>2018-06-25 11:40:14 +0000
commit19a54887f8444c6b14766ea9e81ef852e8f3bf53 (patch)
tree4346713d7420cd74e0ed44dc5bc6088742f420cf
parent254c03e0f72ce3fcb97c7c37417acfe0c988dc6e (diff)
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): Handle IFmode. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-8-branch@262012 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/rs6000/rs6000.md2
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 57fc209c2fb7..7b5288bceb2e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2018-06-25 Segher Boessenkool <segher@kernel.crashing.org>
+
+ Backport from trunk
+ 2018-06-04 Segher Boessenkool <segher@kernel.crashing.org>
+
+ * config/rs6000/rs6000.md (abs<mode>2): Handle IFmode.
+
2018-05-02 Jan Hubicka <jh@suse.cz>
Backport from mainline
diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md
index 9b9ff342dc6c..60058814b8af 100644
--- a/gcc/config/rs6000/rs6000.md
+++ b/gcc/config/rs6000/rs6000.md
@@ -7960,7 +7960,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;