From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1461) id 30C193858424; Fri, 29 Jul 2022 12:04:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 30C193858424 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Andrew Stubbs To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-1894] amdgcn: 64-bit not X-Act-Checkin: gcc X-Git-Author: Andrew Stubbs X-Git-Refname: refs/heads/master X-Git-Oldrev: 85fe7e7dd1f1461b86d92a3a0c1bfd97a06efcc0 X-Git-Newrev: 8f4d9c1dedac54942ad28cc1647d48959bec9e77 Message-Id: <20220729120441.30C193858424@sourceware.org> Date: Fri, 29 Jul 2022 12:04:41 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jul 2022 12:04:41 -0000 https://gcc.gnu.org/g:8f4d9c1dedac54942ad28cc1647d48959bec9e77 commit r13-1894-g8f4d9c1dedac54942ad28cc1647d48959bec9e77 Author: Andrew Stubbs Date: Fri Jul 15 15:28:44 2022 +0100 amdgcn: 64-bit not This makes the auto-vectorizer happier when handling masks. gcc/ChangeLog: * config/gcn/gcn.md (one_cmpldi2): New. Diff: --- gcc/config/gcn/gcn.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/gcc/config/gcn/gcn.md b/gcc/config/gcn/gcn.md index 033c1708e88..70a769babc4 100644 --- a/gcc/config/gcn/gcn.md +++ b/gcc/config/gcn/gcn.md @@ -1676,6 +1676,26 @@ ;; }}} ;; {{{ ALU: generic 64-bit +(define_insn_and_split "one_cmpldi2" + [(set (match_operand:DI 0 "register_operand" "=Sg, v") + (not:DI (match_operand:DI 1 "gcn_alu_operand" "SgA,vSvDB"))) + (clobber (match_scratch:BI 2 "=cs, X"))] + "" + "#" + "reload_completed" + [(parallel [(set (match_dup 3) (not:SI (match_dup 4))) + (clobber (match_dup 2))]) + (parallel [(set (match_dup 5) (not:SI (match_dup 6))) + (clobber (match_dup 2))])] + { + operands[3] = gcn_operand_part (DImode, operands[0], 0); + operands[4] = gcn_operand_part (DImode, operands[1], 0); + operands[5] = gcn_operand_part (DImode, operands[0], 1); + operands[6] = gcn_operand_part (DImode, operands[1], 1); + } + [(set_attr "type" "mult")] +) + (define_code_iterator vec_and_scalar64_com [and ior xor]) (define_insn_and_split "di3"