From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by sourceware.org (Postfix) with ESMTPS id 647863858C54 for ; Thu, 14 Apr 2022 11:06:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 647863858C54 Received: by mail-wr1-x42d.google.com with SMTP id k22so6415882wrd.2 for ; Thu, 14 Apr 2022 04:06:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ecpOub5rnInXIqGQW91b352tjFFr+sRI52EtpBGtDg8=; b=y5G+iSMNB8Ob89ciYIXIPe23RfgfbZKmLkxyBfiUIDo1YXyxpNLW+XlqhJMRXCF8Sf RCCfrFnjmCHj6bbnI7V3n0gIxRFnsfZI8rzqbm1QmcbAuumJCndDakKsSwpf8mQYuH04 v1Vh7CV1SA44/uBd+0JByeIcSPu90Q47w1KYpWYt0SrptsMgPTw03Q6EgYCHeOAVX4cu 3amOWBybncI/nB1yTdMMW5ykojJnYXAc+Nddvf0GqFcesVnYRUgrfPk/OMrYYEAnxZSp fSBbZuQedsPJ71UBzDvQJgLXbG62m5FOxm42S6U3PTd+gIMisC8bt/R5aywJjSfYcebv IArQ== X-Gm-Message-State: AOAM530NV1YI6MM4x/xeQUBr87pt3KEECCZgNvzPUll5qtF3OeM2oJAR 8AMkyRt5gwjFO9gngNe4iGBSYQ== X-Google-Smtp-Source: ABdhPJzE5YBnacEcJsSruzX2Of6wEwaDFP/ToWNgrjHC9E+Gh8e9LdvqifeLYijUvjDOI1cZQ/yvbQ== X-Received: by 2002:adf:e7d2:0:b0:207:a567:6bfc with SMTP id e18-20020adfe7d2000000b00207a5676bfcmr1635793wrn.663.1649934416161; Thu, 14 Apr 2022 04:06:56 -0700 (PDT) Received: from fomalhaut.localnet ([2a01:e0a:8d5:d990:bf38:f508:6f40:de1d]) by smtp.gmail.com with ESMTPSA id be7-20020a05600c1e8700b0038f9179f2d3sm3583433wmb.37.2022.04.14.04.06.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Apr 2022 04:06:55 -0700 (PDT) From: Eric Botcazou X-Google-Original-From: Eric Botcazou To: Jakub Jelinek , gcc-patches@gcc.gnu.org Cc: Richard Biener , Jeff Law Subject: Re: [PATCH] simplify-rtx: Don't assume shift count has the same mode as the shift [PR105247] Date: Thu, 14 Apr 2022 13:06:54 +0200 Message-ID: <1814744.tdWV9SEqCh@fomalhaut> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-4.1 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.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Apr 2022 11:06:59 -0000 > 2022-04-13 Jakub Jelinek > > PR target/105247 > * simplify-rtx.cc (simplify_const_binary_operation): For shifts > or rotates by VOIDmode constant integer shift count use word_mode > for the operand if int_mode is narrower than word. > > * gcc.c-torture/compile/pr105247.c: New test. OK, thanks. -- Eric Botcazou