From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by sourceware.org (Postfix) with ESMTPS id 480023858D20 for ; Mon, 30 Oct 2023 15:49:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 480023858D20 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 480023858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::42d ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698680995; cv=none; b=nwCV4P+2rgFofHmKn91D7ZMDFcUWIAQop7QJZnbBlJqUsF/wGRfoLhg9ugbTgqlrszWaqHNbwVBCW5UQzRk9tLuNUbyvqfIsIim+3Mghf1OfEDl7aWJm41hd+/aPzBhRDGGwsBsmkIJfIca9ilcJTU7rFWJX6JnpUILdiP6N4Xs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698680995; c=relaxed/simple; bh=GRxwAyBC3FODcTfYAjDXvZs2vxvmal7+ODJVqD74G14=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=kd/kglg04Qn5g2hn0MiizCA2zmTiI95ra+y2ulsVnZitsQw5f86aXI7PBC4fys6lInHObUZ069wy/WXgnlioS0++8BiZ6AR4nScMLIkQOy6k0/voSkUqfwAa0axdZcxr9gNOWkPhGwUJpVEcEvGLzGpTQnm95vZhR80PuRKZfyM= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-692c02adeefso3921381b3a.3 for ; Mon, 30 Oct 2023 08:49:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698680992; x=1699285792; darn=gcc.gnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=sUga4kGEW3Ds21WaTR7PYDj8blF65YHIyEn31GEp+4E=; b=T2HTmdnHg8i80YTyN/4rsq+X6In133Ib9ogmXfKiSAPCXBW1t233z2+776qL+Q+K9f SPAzXCF961vYNAmsIa4UcZsRnuh7DJmXGloJeVWnGz56wFXVrb3WUhpeNsaxl38xFtbn dC4NZfRjaEWPXBASpspqMjqJiwDnIthQ1Vwzu/Ud1lOsqfH3WXOLjvtMk1NWO2s7Rz4Z Yt7pTZWfuWymGlaoMbUa75wrEMxw6bngNGiPBxva+c8ueKKuOHxB14fTdif3S9kbUaAk YFMJgB6mIrkFPmmCkgoSUcHXRzwFQ7Tvm31FZS+ftxgzQpH9QdMueyo/9822ClsRJqGW QJpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698680992; x=1699285792; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=sUga4kGEW3Ds21WaTR7PYDj8blF65YHIyEn31GEp+4E=; b=l3fXUqWalmKyQ73I9GDAUt7tMYOrReFujOB7QRTwSHUCAaBIrDbnRAwU6ifAlfLnF6 KZ02PmO3j9BfsbkPWeM8KyYQ6vWqsL1iagqtHnxmrUEO+BpXs9GoQZrh4OBejoaHkWBr hanK/XV/xXP6ZOEiS2dkFEtmZgbc2oLecO9dIPoDukevjHjw0CED2bDt2Pw7SxuTBBjc rQH4m9eZcj8iR7NP0tkKvwWhSY96fS5mZyphHhjrIk/mh3uDMLmGuIfhpqxXNxedD8gF Z9Amkxe2SUzUYR9cxXw1pMvPm4VbgaufiLZHqmr4Fqx81ZwLHYeBjpWl9VtvFz677el5 unGw== X-Gm-Message-State: AOJu0Yy9KkPgkWdA9NNeKwq8Sk/JcLD2Xq7WJlOayOe/22YtFBJ/WswW sehnPzmOkxNm1UvEFh0pDkOGvzWdqOo= X-Google-Smtp-Source: AGHT+IElGhVRzEJlg+lXWzPXa3HKay9n2FwDG773gPdaCQF1pNmiBo40B042WSHAbpNgVpAt1L6qmQ== X-Received: by 2002:a05:6a20:2d0e:b0:15e:10e:2cc3 with SMTP id g14-20020a056a202d0e00b0015e010e2cc3mr8180489pzl.60.1698680991992; Mon, 30 Oct 2023 08:49:51 -0700 (PDT) Received: from [172.31.0.109] ([136.36.130.248]) by smtp.gmail.com with ESMTPSA id t24-20020a639558000000b005b18c53d73csm4751436pgn.16.2023.10.30.08.49.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 30 Oct 2023 08:49:51 -0700 (PDT) Message-ID: <1c80c9de-64e6-453a-bf26-d3e52a463f3a@gmail.com> Date: Mon, 30 Oct 2023 09:49:45 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [ARC PATCH] Improve DImode left shift by a single bit. Content-Language: en-US To: Roger Sayle Cc: gcc-patches@gcc.gnu.org References: <010701da099f$76c4a5e0$644df1a0$@nextmovesoftware.com> <09c401da0b45$a7c9cc40$f75d64c0$@nextmovesoftware.com> From: Jeff Law In-Reply-To: <09c401da0b45$a7c9cc40$f75d64c0$@nextmovesoftware.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,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 List-Id: On 10/30/23 09:27, Roger Sayle wrote: >> WRT H8. Bug filed so we don't lose track of it. We don't have DImode operations >> defined on the H8. First step would be DImode loads/stores and basic arithmetic. > > The H8's machine description is impressively well organized. > Would it make sense to add a doubleword.md, or should DImode > support be added to each of the individual addsub.md, logical.md, > shiftrotate.md etc..? No strong opinion :-) Back when I reorganized this stuff I was just trying to get it more manageable than a single huge .md file -- especially when I knew the port was going to grow 2x larger with the cc0 conversion. > > The fact that register-to-register moves clobber some of the flags bits > must also make reload's task very difficult (impossible?). The clobbering of CC doesn't show up until after reload. At least they're not supposed to show up until then! If they do, then it's a bug and a correctness issue waiting to happen. Given the lack of registers on the H8 we never felt that supporting DImode in the target files was a good idea. Just supporting a 64bit destructive add uses 5 of the 6 (or 7 if no frame pointer is needed) available registers. Jeff