Message ID | 52975f8c-5656-4105-aac4-ae46b923c2b6@gmail.com |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=YrDQyrlG; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SpBD72WXGz23n5 for <incoming@patchwork.ozlabs.org>; Mon, 11 Dec 2023 04:08:37 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C152D3858004 for <incoming@patchwork.ozlabs.org>; Sun, 10 Dec 2023 17:08:34 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by sourceware.org (Postfix) with ESMTPS id BF4A03858D28 for <gcc-patches@gcc.gnu.org>; Sun, 10 Dec 2023 17:08:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BF4A03858D28 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org BF4A03858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::62d ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702228104; cv=none; b=Mt3hamZ2b+p0hsL4jBA10XWY+NNMJbK6ClyiHRilkMx2kxpOtrNrtSk+61Y5obal+DDUZnhZfVZ1CblZ4WYdNNBblf0zGcITHvkaOmd47FT0k3ZQT1DlZQumrcWXBHaBw3h8RRGdBYAhos4FSX4YBJl8HL0vuQMnHPuiVMCIaC4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702228104; c=relaxed/simple; bh=yi7VumfmpH3xYYAsWV47EhRV4xcyTgfHbQIxs4vJEK8=; h=DKIM-Signature:Message-ID:Date:MIME-Version:From:Subject:To; b=TfJKvB5l0DBjHdEgrC/Z1ThRS+7s1IULYymHyyptJ9e4xazVKOg8toGDnUj1HjdDzt1YmxXLlg73amCPAAfFzTSjqKEb7CTiNb5DRJ04nwZsyHXyFTdsYm+wtWW/hwSTa1YFcxpID4E9J0NZ8pFKpjmuAZ9AqlwfbyjGMCemxKQ= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-1d03bcf27e9so23142775ad.0 for <gcc-patches@gcc.gnu.org>; Sun, 10 Dec 2023 09:08:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702228101; x=1702832901; darn=gcc.gnu.org; h=to:subject:from:content-language:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=UgG178RIL8wV6jQMjqv9m+Grn4T8uBTSDKljfQczaBQ=; b=YrDQyrlGIUSqfyyQecD/QuNfEI/myWs7gesfKKh9jcntu3Dsao/oUwRAPmStKRRcw1 Vw3QLCl3PfVNLzqF22t8TWyCloYxEmYa0gmls6JbYUxY03wefoEVZFjX/tWj+FsX6Gph DzoY5tdwOY7mCVlXvnFyPmBMhwz0e1NFvT3heAGHwizZuqzW2L7O4aagSDQ3SFusk0NO tyCly4Fpgvy0E0FqX7ffVrXDXX6PGbGB8s3vNnnBvDMJO7QlJUzXYMDlHy32Y7I0pm9B rsjRYwdgz55sG8EgBdyE7MzoagUjOGUgxwh5zCOk8RND8z8eQKNxtCUUT6CEYIgk7FdT 736w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702228101; x=1702832901; h=to:subject:from:content-language:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=UgG178RIL8wV6jQMjqv9m+Grn4T8uBTSDKljfQczaBQ=; b=nkPNunu06l/OSSSJdsUYKTrWfB2E55Y0p9cgna/RfvqmKDVqQWiIvWYMWWy6GlJnwM RScW4DIcvAWncqy7pQrp4TfgDW+VNhgWw4R4esZo9qIbw0oBU2v27U62Xjde4uFliQeK 2mFfur2BnjuM+hdZ8WO1abY6e7B+gs4hnRTRPPb/PZvE07TT37O89vF7U8+1iFLsnycf uIaf/g3ycOV0qd/FvZd4sMkiHcUB0kuMSGQDYixpl4IOKcI3nuim3ISLAnz2stKF7v3l c0ssGCVi1Um4E75+N4J1L+ZQG4n1mLCbaPfH9nwmJtNDhaxGxvG89qFSOQouRjh/v1+V 8vBw== X-Gm-Message-State: AOJu0Yxn+PDJfHYk8EsOJom2HA+p1lnrCNnpRyLDaCjyTycyAKBbV1ju NJBusFfHTSThoz+RZDM8E2tl8l6iwIc= X-Google-Smtp-Source: AGHT+IGDkjkZM8AgDWom0ZBGODAzFBbyzaGybjAhPbsu6B5hdZlOtjLK4TmIknN3QknGBBLpsDy07w== X-Received: by 2002:a17:902:d505:b0:1d0:6ffe:1e6b with SMTP id b5-20020a170902d50500b001d06ffe1e6bmr1638811plg.78.1702228100697; Sun, 10 Dec 2023 09:08:20 -0800 (PST) Received: from [172.31.0.109] ([136.36.72.243]) by smtp.gmail.com with ESMTPSA id h2-20020a170902704200b001d06b63bb98sm4976177plt.71.2023.12.10.09.08.18 for <gcc-patches@gcc.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 10 Dec 2023 09:08:20 -0800 (PST) Content-Type: multipart/mixed; boundary="------------kJZ4O3Q4CemCoSV7O7BcbU0n" Message-ID: <52975f8c-5656-4105-aac4-ae46b923c2b6@gmail.com> Date: Sun, 10 Dec 2023 10:08:15 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US From: Jeff Law <jeffreyalaw@gmail.com> Subject: [committed] Fix length computation of single bit bitfield extraction on H8 To: "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org> X-Spam-Status: No, score=-8.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, KAM_NUMSUBJECT, 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 <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> Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org |
Series |
[committed] Fix length computation of single bit bitfield extraction on H8
|
expand
|
diff --git a/gcc/config/h8300/combiner.md b/gcc/config/h8300/combiner.md index e1179b5fea6..cce187805c7 100644 --- a/gcc/config/h8300/combiner.md +++ b/gcc/config/h8300/combiner.md @@ -1358,7 +1358,7 @@ (define_insn "" to get that bit into the destination, properly extended. */ return "subx\t%s0,%s0\;exts.w %T0\;exts.l %0"; } - [(set_attr "length" "10")]) + [(set (attr "length") (symbol_ref "INTVAL (operands[2]) >= 16 ? 10 : 8"))]) ;; For shift counts >= 16 we can always do better than the ;; generic sequences. Other patterns handle smaller counts.