From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by sourceware.org (Postfix) with ESMTPS id 7F45B3858D35 for ; Sun, 25 Jun 2023 12:50:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7F45B3858D35 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pj1-x1033.google.com with SMTP id 98e67ed59e1d1-262c42d3fafso763458a91.0 for ; Sun, 25 Jun 2023 05:50:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687697449; x=1690289449; 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=LpXuXHPXi/TyWGhxVkYyCelYUNIbPRvLY/DAiv6nyFs=; b=m2IUgDMl0C0Uul3o24qKSd7cOipRtHtxMpbbSnXLzMdouNGwu7lEIeLQr8jvr87L4j v5GclG4y8NsiijahofjlNJjv0e1ItAiTtTEwstNnSt3b2eq9BKQDYhVG7H47a0W9dy20 smdkgUQgjRMO17lK2OysXM92UyM7INs6B5kjo2vzBzwkHNAIMBIm3X42aBT2wtly92No 3nE/9DUf6nk+Poqi3MrqVm21REShQcamzqkP3pNB+mCc+OA5onQjux8dGhst2F10NER/ FZpyHbkoRPyLB1epKpyR4RBR+tbZpHyvgQOjsuJYfJQ9h6Iogif2sz1P70NQh2SZdnBX eTzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687697449; x=1690289449; 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=LpXuXHPXi/TyWGhxVkYyCelYUNIbPRvLY/DAiv6nyFs=; b=c6vYo4BpQhJmaEtQ4xdfvnsryKudLxzdBlHETiOrbbI/S2cHXchKncltDhpc/+JydZ CuHjWkqDsm5LJ4INTMoy0oXBUBh8dLDGHyKhf+ycMTTsaHSJGbkODB0wsuIrIuAnrHx5 osXak/wC+Fexuq3epjueNql3LHynBobZMxhwWduRsYu62BmgZdCI3ZXlfgUQQDZMY3TB YvxQNLcXZQH4ZKLHKUTK8P8Y62ZtRDNwL7ZbaarHZAjxf1mmCd8dZtRoC6X9vpG9+GX4 1LBNwXTkwzNp0fbBEN+fO6j7bDHr4tVJB718y1NDwtTMoBoNTgxdUGHRDaBkqljDAsKD sQSQ== X-Gm-Message-State: AC+VfDxmIA2qs98nSYB0T5wo2h2jFSGH17E1aSGJ6uAvZz7f8XKzWR8j NqK08Qbn7ME0r4eve/fj8iU= X-Google-Smtp-Source: ACHHUZ5Hztd1pmykyKjC8Nq7LIUd6YQIWX52KQtR6AhCWeay6WxFplLImo0RCT1EOrC4PoQXLNkorg== X-Received: by 2002:a17:90a:1954:b0:261:219b:13b3 with SMTP id 20-20020a17090a195400b00261219b13b3mr12980486pjh.16.1687697449299; Sun, 25 Jun 2023 05:50:49 -0700 (PDT) Received: from [172.31.0.109] ([136.36.130.248]) by smtp.gmail.com with ESMTPSA id 19-20020a17090a031300b0025e0bea16eesm2836104pje.42.2023.06.25.05.50.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 25 Jun 2023 05:50:48 -0700 (PDT) Message-ID: <4bd52e60-98e6-f4e1-0d0d-8cbb9ff227f4@gmail.com> Date: Sun, 25 Jun 2023 06:50:47 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH] RISC-V: force arg and target to reg rtx under -O0 Content-Language: en-US To: "juzhe.zhong@rivai.ai" , Li Xu , gcc-patches Cc: "kito.cheng" , palmer References: <20230625030837.23389-1-xuli1@eswincomputing.com> From: Jeff Law In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,KAM_NUMSUBJECT,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no 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 6/24/23 21:43, juzhe.zhong@rivai.ai wrote: > Hi, Li. > Appreciate for catching this! > > I think it's better: > -emit_insn (gen_rtx_SET (gen_lowpart (e.vector_mode (), e.target), src)); > +emit_move_insn (gen_lowpart (e.vector_mode (), e.target), src); > do this to fix this issue. Agreed. Assuming a variant fixing it this way passes testing, it's OK for the trunk. jeff