Message ID | 20230814181005.1905319-1-christophe.lyon@linaro.org |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp2915859vqi; Mon, 14 Aug 2023 11:10:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGw0Ly5UGnxUEo6Xm2R0xGIfuQcfdkj5btqv0u7gwZk3XScqjWIYXhIJzpnX8NlJjsgk+UC X-Received: by 2002:a19:e01d:0:b0:4fd:d517:fbcd with SMTP id x29-20020a19e01d000000b004fdd517fbcdmr7409480lfg.6.1692036655605; Mon, 14 Aug 2023 11:10:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692036655; cv=none; d=google.com; s=arc-20160816; b=0CxmFvk8uAtEaAeTqQRKm4gZX5On3b139azi0A2XqDXccI58vq/j5lzBX8xm1ARh3f 3Cw9Ml1Uj+5Nztuxl6/z79/iwdBJpgTeniI3iw8DZetodSMdch8Mym/+w7OuJr9HFbcz P8ausG3V6UPJ4rosB/1PfFMmZD0QU18rLLYMbcsrNV87hZatQErxytNeYB0qfK0eBKzU yoCLpGg/axMwV3d2pW03cm+tJctBkcwbQjrJZ2gB7H5yGO9UwAHLOjSDIJQQ35SLiNdf wn+i6ZUz/BH4UH/2RlW+ksshQD3BhZ8brW9ZZhaB+a7TYlcQ7B+S+8TU8KAq4YcE4aSK YrqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=kwzTTvo9VsW6GdeOdoogZp3I64+IBcV1YuD77/AeAX8=; fh=XxyM7Ym2GZuIk6CR9Av7X+K6FIjQnvqQn0ljduIMmhY=; b=nLyrGjp1rknVwYNqCVK9Rww4duWez6uIKioW6Wy3NSRnm89/C4hSUAm8ttUT3V3fZx aGbGgPaMr37B6ieFY0STuoDinbDwfkGc66tuvIQEh2LONgGB2/9O+qLsdyu7F2ZvXimJ X57ZEFNt3xroQClNib0pP009jD/k6Laaa3rSAnrzfM70NWRGuMoPgDSTPlHKiV7PaF9h +kPg5pI493n1GgO6JEOlzxpI/NSV0kqz5EHyimRPaobDPGrg7E10589JNNrRlBQ4WveM jrr9n0d1sDWGcCuVe38i+zY2aygPXZ3gvYfayGa7iuJGQ4ENWLm06Bctb2WyB6IOr/iV kV9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=r33ZFDPc; 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=gnu.org Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id o12-20020a17090608cc00b0099bce8c04d8si7592363eje.141.2023.08.14.11.10.55 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Aug 2023 11:10:55 -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; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=r33ZFDPc; 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=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 85B1738582A4 for <ouuuleilei@gmail.com>; Mon, 14 Aug 2023 18:10:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 85B1738582A4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1692036654; bh=kwzTTvo9VsW6GdeOdoogZp3I64+IBcV1YuD77/AeAX8=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=r33ZFDPcYrL8RK54J3Vhozi94rjyvrYGzG/pf3MssoPnLhzJ7jEWP9seJheUxcnqu +DvmY3WNRHBORd5TNh3VdjZOrcGet9/KByit+pAzL2vJTRfOA0TEze/VtwLXg7o2dL tDfH+dY4krMP2G2OZcUlmG92Xy0NVj/VK6/mN1rQ= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-oo1-xc35.google.com (mail-oo1-xc35.google.com [IPv6:2607:f8b0:4864:20::c35]) by sourceware.org (Postfix) with ESMTPS id 599923858C3A for <gcc-patches@gcc.gnu.org>; Mon, 14 Aug 2023 18:10:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 599923858C3A Received: by mail-oo1-xc35.google.com with SMTP id 006d021491bc7-56dfe5ce871so1586548eaf.2 for <gcc-patches@gcc.gnu.org>; Mon, 14 Aug 2023 11:10:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692036612; x=1692641412; 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=kwzTTvo9VsW6GdeOdoogZp3I64+IBcV1YuD77/AeAX8=; b=Au3jXQwxuAUXZfFnye2TPzbnCcGSpdCF38LpTIjiW7DRSgfz0W2ruX6GwywOqptZND mgPtQ4HHktk1egZOMoU31OT+mvCekeQzs+CvDyWuqkE0MN978/Zw+egclgUqk6sqR1nV UQiJSALjVgHOKeKzfpBuffuIx6LNy+uLNFJO1DBiZWChxd0ZwbtBRoUU+T47MVOUKQGq KUIF6HFqhZ3dM8ceGkJ9fsDsyyGt6anm1+Rmh2fKz4CMq2wYJ+Ehi5mJ5i+FiJeiGyj8 OyXpf+LdK+JG2qinRpBKw8pFqjEOl9BzwYIH696PIxWNIgK2eIuFzL5Ics/5fg1IqmCW aVbQ== X-Gm-Message-State: AOJu0Yy8KAKuNYHG3+8Yg5gd9sHLig/Wl8rjZ1UWBIhAFbHn3AeO8cIa GJF5mRi9T/g5t/spdwGTv9c4yQpgYNfK8OsCak3VDUdL X-Received: by 2002:a4a:625a:0:b0:56c:7120:8363 with SMTP id y26-20020a4a625a000000b0056c71208363mr7850477oog.5.1692036612213; Mon, 14 Aug 2023 11:10:12 -0700 (PDT) Received: from localhost.localdomain ([139.178.84.207]) by smtp.gmail.com with ESMTPSA id o128-20020a4a2c86000000b0056c81dedb3bsm4983927ooo.8.2023.08.14.11.10.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Aug 2023 11:10:11 -0700 (PDT) To: gcc-patches@gcc.gnu.org, Kyrylo.Tkachov@arm.com, richard.earnshaw@arm.com, richard.sandiford@arm.com Cc: Christophe Lyon <christophe.lyon@linaro.org> Subject: [PATCH] arm: [MVE intrinsics] Remove dead check for float type in parse_element_type Date: Mon, 14 Aug 2023 18:10:05 +0000 Message-Id: <20230814181005.1905319-1-christophe.lyon@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.9 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 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.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: Christophe Lyon via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Christophe Lyon <christophe.lyon@linaro.org> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1774229027752703670 X-GMAIL-MSGID: 1774229027752703670 |
Series |
arm: [MVE intrinsics] Remove dead check for float type in parse_element_type
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Christophe Lyon
Aug. 14, 2023, 6:10 p.m. UTC
Fix a likely copy/paste error, where we check if ch == 'f' after we checked it's either 's' or 'u'. 2023-08-14 Christophe Lyon <christophe.lyon@linaro.org> gcc/ * config/arm/arm-mve-builtins-shapes.cc (parse_element_type): Remove dead check. --- gcc/config/arm/arm-mve-builtins-shapes.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
Comments
> -----Original Message----- > From: Christophe Lyon <christophe.lyon@linaro.org> > Sent: Monday, August 14, 2023 7:10 PM > To: gcc-patches@gcc.gnu.org; Kyrylo Tkachov <Kyrylo.Tkachov@arm.com>; > Richard Earnshaw <Richard.Earnshaw@arm.com>; Richard Sandiford > <Richard.Sandiford@arm.com> > Cc: Christophe Lyon <christophe.lyon@linaro.org> > Subject: [PATCH] arm: [MVE intrinsics] Remove dead check for float type in > parse_element_type > > Fix a likely copy/paste error, where we check if ch == 'f' after we > checked it's either 's' or 'u'. Ok. Thanks, Kyrill > > 2023-08-14 Christophe Lyon <christophe.lyon@linaro.org> > > gcc/ > * config/arm/arm-mve-builtins-shapes.cc (parse_element_type): > Remove dead check. > --- > gcc/config/arm/arm-mve-builtins-shapes.cc | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/gcc/config/arm/arm-mve-builtins-shapes.cc b/gcc/config/arm/arm- > mve-builtins-shapes.cc > index 1633084608e..23eb9d0e69b 100644 > --- a/gcc/config/arm/arm-mve-builtins-shapes.cc > +++ b/gcc/config/arm/arm-mve-builtins-shapes.cc > @@ -80,8 +80,7 @@ parse_element_type (const function_instance > &instance, const char *&format) > > if (ch == 's' || ch == 'u') > { > - type_class_index tclass = (ch == 'f' ? TYPE_float > - : ch == 's' ? TYPE_signed > + type_class_index tclass = (ch == 's' ? TYPE_signed > : TYPE_unsigned); > char *end; > unsigned int bits = strtol (format, &end, 10); > -- > 2.34.1
diff --git a/gcc/config/arm/arm-mve-builtins-shapes.cc b/gcc/config/arm/arm-mve-builtins-shapes.cc index 1633084608e..23eb9d0e69b 100644 --- a/gcc/config/arm/arm-mve-builtins-shapes.cc +++ b/gcc/config/arm/arm-mve-builtins-shapes.cc @@ -80,8 +80,7 @@ parse_element_type (const function_instance &instance, const char *&format) if (ch == 's' || ch == 'u') { - type_class_index tclass = (ch == 'f' ? TYPE_float - : ch == 's' ? TYPE_signed + type_class_index tclass = (ch == 's' ? TYPE_signed : TYPE_unsigned); char *end; unsigned int bits = strtol (format, &end, 10);