From patchwork Thu Nov 23 15:56:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 169011 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp543366vqx; Thu, 23 Nov 2023 07:56:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IF8U1xxU0d7dmls3Vh9EfIFSpOUN6CHefW22ZZfZuKGKSIwhqCZS0xqc8f4aXvfD/j6oGGZ X-Received: by 2002:a05:622a:110f:b0:418:11c9:ddb5 with SMTP id e15-20020a05622a110f00b0041811c9ddb5mr4540017qty.25.1700755016924; Thu, 23 Nov 2023 07:56:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700755016; cv=pass; d=google.com; s=arc-20160816; b=qx3KsWKOND019D+T2Deq6qr0EXShUwFroudX0ph9gATzehfqa5eI3lhY0+i0qF9MqH Jtzj6b6ykjrxj/yo4XabHIy0oKzjjqBoiFtpj8KtYki+Ei19pc+OlNc+WT5xd04suX7X 8dPy2aCXum9k+dmWNeXPaceU4X0l7IaFsN+MH2WsrzMcIlVmrhon2z+OVqQv0SZIALWW v0lpYUfhq5BR/PYXmUSPvHngbHT2QlLuZVKIKUjsa/3qxsg4HS7p5ZHFE2kR782TEKKe 1gKlntvrO+Iqr20622GiirgkYcXHjv88z9Q1/yW3Yl5efTlG0qIO5bQehxyXu3KdXJ0f 7ugA== 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:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=XJZQksPwgGE/w9bxxJgmrAwUEEkLDPn5g0XkD5ldOcg=; fh=K9D2FJTooCELjmT4wT/qRlYGwCdNLa0RZavHCLYGDac=; b=JVVsm5d4a/ATQXHDKuQdunRFNeG4XNXXmGt+FpwjgQnsdr7vMtGKquCR+2DoAynwbA 7rKEG7i/8WJlgwCcA2C525wV1HOSU2RDLQHmBt3vJd3Xat1E7w7Yw6+uDNAmIM3mHk++ V40LyM5EBbBkuMlIdnF4QO5+PvpnaLJI9vg+DJs68SOA96sD7rGIMoOoc1SujlfE+s36 2nptGYnt6S4nIUhNCjq/EzlPgzzQdxpzmH0pX+IymuzPcskRP7wt3c6Dlb814X9hfD7F UNKJsmT00IJdDj4TGIXOqKVygABcWthZWY7qhsQ67Q9wRSFqkHSCe4cHWa7C8MhoHBWC 1sLg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SjT9pUJ1; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id c10-20020ac85a8a000000b00403b977323dsi1408594qtc.18.2023.11.23.07.56.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 07:56:56 -0800 (PST) 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; dkim=pass header.i=@linaro.org header.s=google header.b=SjT9pUJ1; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B17F1385DC01 for ; Thu, 23 Nov 2023 15:56:56 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-oa1-x2b.google.com (mail-oa1-x2b.google.com [IPv6:2001:4860:4864:20::2b]) by sourceware.org (Postfix) with ESMTPS id A81283858425 for ; Thu, 23 Nov 2023 15:56:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A81283858425 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A81283858425 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:4860:4864:20::2b ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700754993; cv=none; b=GWkRTL2iWYYR/iVPIEibEM54sn74nGbTOi3VNUoJt2WOSnKtqbs49JiOiHMk0gUKBTFze4MqE+iohPnpvpdcjh+aE/CXBVYP0dPTm0oM3zfkmQitQm6ZnaAVUywu5WdPKxHvdPpsIvrVJsAFLQitGCldRqX4B2Dkl4SanhhBSsg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700754993; c=relaxed/simple; bh=2HB7tDUFR1hUDj2nPyP3rn17NXnOq86KxhSMj3m1HhI=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=VMaxgnd7Q4Iyi/Kxqnk4659FsM7CVyM4ANlIdOQg2Og89gDdEIjJ8SK3RoEhJ+6L4NvBb6r1Bg8GZCnuWM8l+Q48X6n8p8BhlBnjMuO5nQt9Eqn8NRLpdiNqVa6WB1KegQ6FNwwUZAwdp9RNBmbf5lsNdQiEWbSKHwVmGqK3bWk= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-oa1-x2b.google.com with SMTP id 586e51a60fabf-1f9e6a49bd2so50681fac.1 for ; Thu, 23 Nov 2023 07:56:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700754990; x=1701359790; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=XJZQksPwgGE/w9bxxJgmrAwUEEkLDPn5g0XkD5ldOcg=; b=SjT9pUJ1OsO77rV0ZszzFSqsGzJf1+GCtCC9Q5ksT36cD8GV6BylBea/g2aJm0TcQ1 s9fi4aezZEtoYpKaRq4E2A9IdS/2Y8olzcOlrtpN2oqTsLs6akSQY7luAAjxQkuO8nB8 2ifgOmhBnhGztCQimzi6+Pe2rXB4iYA7+i/blHwOKD+RTX+/q6bcyTgI519s4to1+CaH jx0QZzM2o0GOO+YgIlBodYhb3MhqCTtUM0mmmgoxNYLuCVJAqCBEkW3scNeIr3UT/2Ye vEH5B6usXGqC2iPsSqIUQRo/+88fHA3zO9j6KwNHzvQhDLTKuADKBzrl/MFcURjVHsFw bk+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700754990; x=1701359790; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=XJZQksPwgGE/w9bxxJgmrAwUEEkLDPn5g0XkD5ldOcg=; b=PYWuwumhbHvQQ9SoXf1LLQBHejLj9zuif35lVLcX6CVBUD3mjETIsC0iFF6kYzq9Su 60emCxP+0BK8z1M/8K08iWZKieTDkxRih5CXhDTIf7GJ9MnOYUWjl+zJAlenNfVTiuvR XwEbPmOwBiSyTPipeJmIJULZSOc3S1VRmj+7mLxNuilK2iTQ8KLzxRkJFQTl3MY+t5qU 152PcNyQrlANfbJdPJ9YCPcy4F4lhVcirhoZERr+pbEpDj53scSHxHTITCNQk+kvkUXx PPmJtcS1kfai2yCDBwJ+9b77HKaBGOjKABUZQatUWKS5UWXh5ly7ikEbScVatj8KCG0K ZEhw== X-Gm-Message-State: AOJu0YxkBvXCfpuhs70dd31WHHENjFT/D432pe5uVhg8Jaour5qgti8u tGBUqOzvMMxY8RVsOVfP6l1JqvX0IQSYfATGhkD6KA== X-Received: by 2002:a05:6870:6588:b0:1f9:df76:435e with SMTP id fp8-20020a056870658800b001f9df76435emr451115oab.5.1700754990219; Thu, 23 Nov 2023 07:56:30 -0800 (PST) Received: from localhost.localdomain ([139.178.84.207]) by smtp.gmail.com with ESMTPSA id qc5-20020a056871e7c500b001eb814093b0sm353146oac.34.2023.11.23.07.56.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 07:56:29 -0800 (PST) From: Christophe Lyon To: gcc-patches@gcc.gnu.org Cc: Christophe Lyon Subject: [PATCH] arm: [MVE intrinsics] Add default clause to full_width_access::memory_vector_mode Date: Thu, 23 Nov 2023 15:56:27 +0000 Message-Id: <20231123155627.2335026-1-christophe.lyon@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-12.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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: 1783370892706241093 X-GMAIL-MSGID: 1783370892706241093 My recent commit 0c2037d9d93a8f768cb11698ff794278246bb31f added a switch statement lacking a default clause, leading to warnings or errors when building with --enable-werror-always. Fix by adding an empty default. Committed as obvious. 2023-11-23 Christophe Lyon gcc/ * config/arm/arm-mve-builtins-functions.h (full_width_access::memory_vector_mode): Add default clause. --- gcc/config/arm/arm-mve-builtins-functions.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/config/arm/arm-mve-builtins-functions.h b/gcc/config/arm/arm-mve-builtins-functions.h index 6d234a2dd7c..1c93e6436b5 100644 --- a/gcc/config/arm/arm-mve-builtins-functions.h +++ b/gcc/config/arm/arm-mve-builtins-functions.h @@ -1013,6 +1013,8 @@ public: case E_V8HFmode: mode = E_V8HImode; break; + default: + break; } if (m_vectors_per_tuple != 1)