[committed] amdgcn: fix mode in vec_series

Message ID 63316793-eb80-1bbc-5d5a-89c8b84d528c@codesourcery.com
State New
Headers show
  • [committed] amdgcn: fix mode in vec_series
Related show

Commit Message

Andrew Stubbs Feb. 21, 2020, 11:57 a.m.
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. :-(



amdgcn: fix mode in vec_series

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

	* 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));