This patch fixes any obvious typo in the definition of vec_seriesv64di.

It's never worked, so the fact it's taken this long for me to notice shows how little the middle-end takes advantage of this pattern. :-(

Andrew

amdgcn: fix mode in vec_series

2020-02-20  Andrew Stubbs  <a...@codesourcery.com>

	gcc/
	* config/gcn/gcn-valu.md (vec_seriesv64di): Use gen_vec_duplicatev64di.

diff --git a/gcc/config/gcn/gcn-valu.md b/gcc/config/gcn/gcn-valu.md
index ecdd60b8190..edac362fd46 100644
--- a/gcc/config/gcn/gcn-valu.md
+++ b/gcc/config/gcn/gcn-valu.md
@@ -3156,7 +3156,7 @@
     rtx op1vec = gen_reg_rtx (V64DImode);
 
     emit_insn (gen_mulv64di3_zext_dup2 (tmp, v1, operands[2]));
-    emit_insn (gen_vec_duplicatev64si (op1vec, operands[1]));
+    emit_insn (gen_vec_duplicatev64di (op1vec, operands[1]));
     emit_insn (gen_addv64di3 (operands[0], tmp, op1vec));
     DONE;
   })

Reply via email to