From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by sourceware.org (Postfix) with ESMTPS id E9DA338532D7 for ; Fri, 25 Nov 2022 14:07:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E9DA338532D7 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embecosm.com Received: by mail-wm1-x330.google.com with SMTP id t25-20020a1c7719000000b003cfa34ea516so6191096wmi.1 for ; Fri, 25 Nov 2022 06:07:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=mime-version:user-agent:references:message-id:in-reply-to:subject :cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=U94cy3pl7VbnZ7y/bPlegSO7UbGgmCsUpLBYfv5L+gc=; b=Kfh5BI+xkA0K9k12pOhMoygq+0X1GN6mzAaSdb8dUiKVtdPJwYIugoiVpQEYTbDaFS TLxXKpDbfCMQctkiWL8zzQFTOPyAUijoLaXYd9GLZi8grKmQ0tPzwme8j5sVPMFeAs5h 645A4D2k9iEJH0+Ik48owqegGslyfluvjrxDAjKE5+a+ePx/AKI9guWxVIvhMz9iNhDn h8gDZRDQFc1tDIQz3w+N+CHHgX0jMu3oaYEqN+duUYK7aEf/wT/BIhxEeQ6wHPozm0qt RcuClQ5TywTmM5YNmY+BLbeCZJZbLXYftDJWkaBRyCDPssRBWqb9+1J5XG2kb2/wun5K l3gA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:references:message-id:in-reply-to:subject :cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=U94cy3pl7VbnZ7y/bPlegSO7UbGgmCsUpLBYfv5L+gc=; b=wsMoSKRou2xAMkZp6crR+RP/ozxXzm40k9bQxWn9cKKqCEtz13aTqgqDI1yY21gf9G mxfXcG67ZAg1sx8PdieOEYso0yUyDvlL6fZbo4ENbIZZdMQ7hwe/5F3WSJrSOVeCEbud iInveEXd7PagpVQScquzFW0w6fp5U5Xx0bYznnyWxH90/HZ/pENfzDsqHaJu1wZXAuUU qG9NLdw8UeCMVaS+UtCxpNjzbSXXylpdacNI7m0y0OF/jKIzB7iEDqz8PCWEmMLxIJgI wHyT6m1AoX4JQijxOJnw55N0LLZiP07+5WQVYA65Poz8ebrztPLExEI6voxckpwEFKWT La5A== X-Gm-Message-State: ANoB5plRAG2UcHOKmGh8ge6l6C892yKfDipeohJ39Fbzy3ua7Pw7lb1z 5PXts3sAPQlNBfX87crhmKSdXQ== X-Google-Smtp-Source: AA0mqf4sHTZ4RKIz3Itv/McGjjGA15wDot90DEtJATnkTD10MS+Xr1EHa1HaRSRme4/aSm2NU2sdvQ== X-Received: by 2002:a05:600c:3492:b0:3cf:ad59:1465 with SMTP id a18-20020a05600c349200b003cfad591465mr6354474wmq.12.1669385265267; Fri, 25 Nov 2022 06:07:45 -0800 (PST) Received: from tpp.orcam.me.uk (tpp.orcam.me.uk. [2001:8b0:154:0:ea6a:64ff:fe24:f2fc]) by smtp.gmail.com with ESMTPSA id ay27-20020a05600c1e1b00b003b95ed78275sm5385250wmb.20.2022.11.25.06.07.44 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Nov 2022 06:07:44 -0800 (PST) Date: Fri, 25 Nov 2022 14:07:41 +0000 (GMT) From: "Maciej W. Rozycki" To: Kito Cheng cc: GCC Patches , Andrew Waterman Subject: [PING][PATCH] RISC-V: Avoid redundant sign-extension for SImode SGE, SGEU, SLE, SLEU In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-2.5 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 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: Hi Kito, On Fri, 12 Aug 2022, Maciej W. Rozycki wrote: > > LGTM, but with a nit, I don't get set.w but get an andi like below, so > > maybe we should also scan-assembler-not andi? feel free to commit that > > directly with that fix > > > > ```asm > > sleu: > > sgtu a0,a0,a1 # 9 [c=4 l=4] *sgtu_disi > > xori a0,a0,1 # 10 [c=4 l=4] *xorsi3_internal/1 > > andi a0,a0,1 # 16 [c=4 l=4] anddi3/1 > > ret # 25 [c=0 l=4] simple_return > > ``` > > Interesting. I can do that, but can you please share the compilation > options, given or defaulted (from `--with...' configuration options), this > happens with? I have noticed it went nowhere. Can you please check what compilation options lead to this discrepancy so that we can have the fix included in GCC 13? I'd like to understand what's going on here. Maciej