From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by sourceware.org (Postfix) with ESMTPS id B2AF83858D28 for ; Fri, 12 Aug 2022 22:01:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B2AF83858D28 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-ed1-x529.google.com with SMTP id x21so2872921edd.3 for ; Fri, 12 Aug 2022 15:01:57 -0700 (PDT) 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; bh=jbiHqTFtnHpViwDJ59GRHnFtLeAkHFXE6U1dUtzDhik=; b=O6It9/6phDGFjf7iV8GZiiocPvg6uc+LcHIrGGTWNGaG1xVnkHmeHlh9OI+ED82SeN QHGO2lUZ9yPJybkdOsxOM/eYIi1M0FV8A/a5aIWLnxvVN37RJSTF/LB3QmqhRZv+3bER KhiOdg/WwwMoxhIGdw+hXGZryZGbMxEHcYt22uoYYn6aQMwONQ6yS0LpqHmgAWhU0SVA GY2tE7E6AfCT+NZZGaOB5bjxGfcX2dUIMlndKZ4Ajgiq0vuxpKPk3ogFkMPdc5LHgQlD VCkZYfahq8F7UWq8AR6JVIbIlG7iRIHtpkiw+WfiiWl2h6/sftj85bVRy7nnGVdvkreW eDnQ== 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; bh=jbiHqTFtnHpViwDJ59GRHnFtLeAkHFXE6U1dUtzDhik=; b=pGwirUtNkiPWOILXXJLChtO0WfapRqq1x1hYUMX8GQDB/tScmNCM0uqy0GFwJfaSnT ZOmtzcUt02KiZSDtE7y9pNF/dmj3cHwjIRwBD8hXfp4f7J6Wb/+WDyScKmlrwOr2+I6N 29u44Ewot7epo20CqQjQqpLjGEh2gFaEPMlLrpQ3D4O/QabnuTa53QBw+o1e/7de4uYb 5EomKPn94vqb30tuXFpwSvfK/A70wWTgyhyR1/XB02sWcz0FvoZp/jspjZ1L3O2goOE+ 5H7tbmL0SRtyV0a1hFBNpwMUNFA1Vk7aie4G6Rjz5kTpW16M6j1mpH7o2OiAx9BjsInb Ic+w== X-Gm-Message-State: ACgBeo1SkXgxojjIjwWV3XsUrw+Z0FdQIpdwroWIOLa++nfgi3we+3dt S4AlaXm1gC74DdzA7OjysVZDBQ== X-Google-Smtp-Source: AA6agR7jObPqYBtAbWhZSQd6KqCkJn8eBwoUGE+mlygdNh9lcxSv+Tmmt9/16uNQmZiPvwPfpjmdTA== X-Received: by 2002:a05:6402:2789:b0:440:44b6:849b with SMTP id b9-20020a056402278900b0044044b6849bmr5205242ede.387.1660341716191; Fri, 12 Aug 2022 15:01:56 -0700 (PDT) Received: from annie.orcam.me.uk (annie.orcam.me.uk. [2001:4190:8020::48]) by smtp.gmail.com with ESMTPSA id b3-20020a17090630c300b0072b616ade26sm1191402ejb.216.2022.08.12.15.01.55 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Aug 2022 15:01:55 -0700 (PDT) Date: Fri, 12 Aug 2022 23:01:52 +0100 (BST) From: "Maciej W. Rozycki" To: Kito Cheng cc: GCC Patches , Andrew Waterman Subject: Re: [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, 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Aug 2022 22:02:00 -0000 On Thu, 11 Aug 2022, Kito Cheng 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? Maciej