From patchwork Fri Oct 27 17:04:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Stubbs X-Patchwork-Id: 159034 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp753733vqb; Fri, 27 Oct 2023 10:05:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHSWrunF5cuT9Lz8mNhtvZf2v8lBIefVrZMMNjQHQqxfZOQStwRGd0WIFYc81/iR6+rrm// X-Received: by 2002:a05:6214:242a:b0:66f:a470:d1c8 with SMTP id gy10-20020a056214242a00b0066fa470d1c8mr5288695qvb.17.1698426328527; Fri, 27 Oct 2023 10:05:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698426328; cv=pass; d=google.com; s=arc-20160816; b=EIERNaYV+ApYE6Y6/w7RvHbLcZ6pUQ/ZNUGGuVYv3fGF/ZScwzx3A6D11uVHIft+3s t1nsSA48N30iALLQMIC6ukogVQgcWG0XgS7Kva7t3eQhSCDWk2psIXLXDp42pfldrZyS 1j1Gh0hCcUqy/+xXqLaIhG1OY+5dRfkXtz0rI+fbMd2krTufHy8tcFpg5SJea9CpUz3p Ma8SlvCoxnOAqaa+6twfX/mN/epsIlIelmzcCy96vijG97P6TniwudrA3AvMGjxWi1Zg nWzrqrVaq0+beqZNlepq1gGIwoVSSGhmTkOu4w0sz8uQ5nTdf1++Lr26qvgZ/HnEUOLc gMxw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:from:to :content-language:user-agent:mime-version:date:message-id :ironport-sdr:arc-filter:dmarc-filter:delivered-to; bh=+uZUQdBDYWsTP6RrI72AqGOJGLfx3+7+R5pzlowqYZM=; fh=XNn3asQvIblazGK92GBt13dVv+YmGV3pBS0JC29ZQco=; b=ZaWeJboGUbf2u0KW1HuFGXD1QVDpMzs5NoWeDQzyzOO9vVOnEFF9YQ560G3KaN3eKz SbwVguvVX/WWy0J/w4eSkZ1Z1EslRDfLZ6X0yFJrjnoekmQJI+076L1RJN6/YFf4uU2W iy+5aersFIlMPDjV7qaVv80x6HfgC0GYYh/w9Vorx7dFQrsxwATr9g1kRjUqiUEwI1XK 0IGknbuil7ktxcXVMv/5//SBA+wauVFwuatjj5H6Tqn1bP7lajy+LOLQ1PTCEgUna9X1 Sb6iI0JkyMIDN7to5b0atq0QqXQCdieEa+ozCVvCSa89iOGinZr5n0eD+3pGbxD5v7ZC scQQ== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id g13-20020a0cf08d000000b0066d110cd0a3si931377qvk.375.2023.10.27.10.05.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 10:05:28 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4F140385F023 for ; Fri, 27 Oct 2023 17:05:28 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from esa1.mentor.iphmx.com (esa1.mentor.iphmx.com [68.232.129.153]) by sourceware.org (Postfix) with ESMTPS id A2DC33858C2B for ; Fri, 27 Oct 2023 17:05:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A2DC33858C2B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A2DC33858C2B Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=68.232.129.153 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698426305; cv=none; b=uowoyxlSFSKaWD3VgSC0tVWq5Tm5h7sZMZP4nhcGMBloLP6XJC//zb69s1fqVzVv4PRK1JLBgnqbWfY7vi/BOMG6uM3T+zl//btR+m8cZ05xUENgk5CaS/2drdKt/gdP22hdSQRKRBjwavKopJoZK7xS3+jLZMmy6b6s2idYHlA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698426305; c=relaxed/simple; bh=4CmNm1nDWMGCbGqGzDQ9xoLbjUiVCNYrFn5yxsqLbwY=; h=Message-ID:Date:MIME-Version:To:From:Subject; b=msA3uXyT17JFhXq++FB4lv533JuCGqOZ0WkPux9RWhRZz6TucN4bVuVO3d8aQgH9+mW+G9Y9t84f5W+10ah+uv3n+9KHgFV6jLSgMVtOV81Cj2Arxi8OYdvQxkV/00NPsPfNUnmlMx2N4Ih06DK0m67+IW0D6594FBtPuZ4O2lk= ARC-Authentication-Results: i=1; server2.sourceware.org X-CSE-ConnectionGUID: 4ZkyhH9fQByz1VUWZgeCpg== X-CSE-MsgGUID: hX99Oa6yQvadnrxGHqz1Qw== X-IronPort-AV: E=Sophos;i="6.03,256,1694764800"; d="scan'208";a="23786013" Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by esa1.mentor.iphmx.com with ESMTP; 27 Oct 2023 09:05:02 -0800 IronPort-SDR: 6raCYVwDnah63z8P7/Il14mzDgrIH3gBozxPlqwvq2m0cneEYUp3X6saYzVR/VyarufuWkjKD4 tyvEfySI/M59YZ4BHMcf0KgBTJp2RVhwy31KcOgRaU1kyFp3Lp+i/6Wogk9b+k1h0jHjR6ZGQ3 NrYCaT/SCokHHd4kQaTqpOSII5kh1gh6DaA7H8M6R485QgHGPwPiFTWXLPf+6WkgNruRtxO+v6 4yPYYbjHKBSK0hvytBTeC7WW/pGFjDuwbWH8dx8e2Yn4AbR+4MRo68b5m8mCpIg6RJQYM2I7ni trw= Message-ID: <80c4653a-1838-416d-bd78-17a338c61fb2@codesourcery.com> Date: Fri, 27 Oct 2023 18:04:57 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-GB To: "gcc-patches@gcc.gnu.org" From: Andrew Stubbs Subject: [committed] amdgcn: silence warnings X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-12.mgc.mentorg.com (139.181.222.12) To svr-ies-mbx-11.mgc.mentorg.com (139.181.222.11) X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780929085820190854 X-GMAIL-MSGID: 1780929085820190854 This trivial patch adds the "operands" keyword to the condition in a couple of patterns that cause warnings about "missing" mode specifiers. With the iterators, there were a large number of warnings about these cases that have now been silenced. Andrew amdgcn: silence warnings The operands really should be VOIDmode, so the warnings are false. gcc/ChangeLog: * config/gcn/gcn-valu.md (vec_extract_nop): Mention "operands" in condition to silence the warnings. (vec_extract_nop): Likewise. * config/gcn/gcn.md (*movti_insn): Likewise. diff --git a/gcc/config/gcn/gcn-valu.md b/gcc/config/gcn/gcn-valu.md index c128c819c89..39c1dc5b7b4 100644 --- a/gcc/config/gcn/gcn-valu.md +++ b/gcc/config/gcn/gcn-valu.md @@ -948,7 +948,8 @@ (define_insn "vec_extract_nop" (match_operand:V_1REG 1 "register_operand" " 0,v") (match_operand 2 "ascending_zero_int_parallel" "")))] "MODE_VF (mode) < MODE_VF (mode) - && mode == mode" + && mode == mode + /* This comment silences a warning for operands[2]. */" "@ ; in-place extract %0 v_mov_b32\t%L0, %L1" @@ -961,7 +962,8 @@ (define_insn "vec_extract_nop" (match_operand:V_2REG 1 "register_operand" " 0,v") (match_operand 2 "ascending_zero_int_parallel" "")))] "MODE_VF (mode) < MODE_VF (mode) - && mode == mode" + && mode == mode + /* This comment silences a warning for operands[2]. */" "@ ; in-place extract %0 v_mov_b32\t%L0, %L1\;v_mov_b32\t%H0, %H1" diff --git a/gcc/config/gcn/gcn.md b/gcc/config/gcn/gcn.md index a3d8beefd6d..e6a9ac60b57 100644 --- a/gcc/config/gcn/gcn.md +++ b/gcc/config/gcn/gcn.md @@ -694,7 +694,7 @@ (define_insn_and_split "*movti_insn" (define_insn "prologue_use" [(unspec_volatile [(match_operand 0 "register_operand")] UNSPECV_PROLOGUE_USE)] - "" + "1 /* This comment silences a warning for operands[2]. */" "" [(set_attr "length" "0")])