From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by sourceware.org (Postfix) with ESMTPS id B69193858C2D for ; Mon, 27 Nov 2023 17:37:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B69193858C2D Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embecosm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B69193858C2D Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::1029 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701106629; cv=none; b=DD7UZL6wmaEQbkRETWRctXSsNjIT9clNd0Mv5iLIUss6BBd7ty2bmBrizdATjUfY5HJTDilUJvcclNr+tb6/287mGsHOmVMef6psPoQMW87xWRuuaGL/rmf3DIf9gBo4nYlW8GKDCiVPo0DfQFviPBs8/Rg7V+L3XmW4s6dyMJI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1701106629; c=relaxed/simple; bh=BHEf1awvIfsFiElQP5qGakAa4FpdMbumlIwqGiPsDxA=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=NCknSfrw2XecY6aiC8E1s8GyBTcDIlSU4GBT53xtMb/B15Md62icKezRfk1gIfeqRAGXEibunMTfadkgiir99cvrk7I2zofavm1EyspTcDWQvsGZ1UZ1ww15toUs77kizCk7S0tZGoLWvkooCvOqSDqbrztDTigQSvjAcQg7UfQ= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pj1-x1029.google.com with SMTP id 98e67ed59e1d1-285699ebabcso2823852a91.0 for ; Mon, 27 Nov 2023 09:37:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; t=1701106627; x=1701711427; darn=gcc.gnu.org; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=F7BE3Ii7ZuiMlY1zNrmr1m6hhid1ewlrgl3GUxydCGg=; b=MMdOhoo+/pDJ0Ghyf+cQHzIerG/Be4gV7CE9MI9kZ5SNO749TRMXldiTms2/1+/Zaf rfFN68PTmwAli9txdWHdvbh0zl2gFXV/4a2xpop/FDU+kG25dnf5cZ3K8Vw2A1RUCesC 95MBAHpgfMbbyTjwkhBj1NMvwNHfHzlWm3Rj+Q+3kP0orxqIL4ovvPqhIwMwAeCem1LR vpVjE5sAKX8+fbkqwqgSocH36YzitkkCZXaKWU1djajKcLBeW7pwGnYTVWEJ/EpiLwGD rBP1HJh3KtSOFG9X7a3Y4ZExKiO1ehp1TXjZlw3WPLAwsa9/qq1w2xflsXKDGTWu809G V64A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701106627; x=1701711427; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=F7BE3Ii7ZuiMlY1zNrmr1m6hhid1ewlrgl3GUxydCGg=; b=UVAcUpwYA+9PVd5awwYWimqiprkyXFC6qqqP8CiKJVEO5jq6T35pcW+geOL5F1eaE6 YxKMpyX6olWd6Eajo3Lri2Iwfw9UUh93WznTuGDfoxQ9+1zK3Y9jbeFdyoPBUBKiJP16 Ybj5UIrdbwUxsFGxBh271cBWb1xZx3aROWRUigvBWFX5UPfuzasHLbkNICE9uj+WUzcI cyoXKlcQ2jjv5AtYVepq74VtF5CVETqZ6Sg9XWAMI9PCKBftgCOl1zHR0/zByOr37DgC n7ZFMU6lx9o4H4LVj/Gk8ZvHBXPLMJv0wx/riF9oizTH3rfvPt4RuscAP/haBt+xE4Wr bsAw== X-Gm-Message-State: AOJu0YxUJiw9lh89gaHj6DXgC8uZwIgtgl+Y3k6/+irCilakSofjS+0s QduOS0t2/JHZvsqZ2ey/DTc7ZoY1+nNrYjhLP3XyUK0KnUGKko5pxIw= X-Google-Smtp-Source: AGHT+IFInmJoADl6xfd9b6p5qta3+lPQi0fhxM93P6Wr/dKSV3Al04qgF3buI86m3J2hs3eWUY4LpDzuSJPxznPui7g= X-Received: by 2002:a17:90a:f006:b0:285:777d:7b7f with SMTP id bt6-20020a17090af00600b00285777d7b7fmr19032736pjb.13.1701106627626; Mon, 27 Nov 2023 09:37:07 -0800 (PST) MIME-Version: 1.0 From: Joern Rennecke Date: Mon, 27 Nov 2023 17:36:56 +0000 Message-ID: Subject: Re: [RFA] New pass for sign/zero extension elimination To: GCC Patches Cc: jlaw@ventanamicro.com, richard.sandiford@arm.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 List-Id: On 11/20/23 11:26, Richard Sandiford wrote: >> + >> + mask = GET_MODE_MASK (GET_MODE (SUBREG_REG (x))) << bit; >> + if (!mask) >> + mask = -0x100000000ULL; > > Not sure I follow this. What does the -0x100000000ULL constant indicate? > Also, isn't it the mask of the outer register that is shifted, rather > than the mask of the inner mode? E.g. if we have: Jeff Law: > Inherited. I should have marked it like the other one as needing > investigation. Probably the fastest way is to just rip it out for a > test to see what breaks. This is for support of types wider than DImode. You unsupported tracking of these values in various places, though.