Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.1 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7CA1AC433DB for ; Sun, 14 Mar 2021 01:41:14 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E630764ECE for ; Sun, 14 Mar 2021 01:41:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E630764ECE Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:51588 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lLFkm-0001FK-O7 for qemu-devel@archiver.kernel.org; Sat, 13 Mar 2021 20:41:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40270) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lLFjb-0000ht-JY for qemu-devel@nongnu.org; Sat, 13 Mar 2021 20:39:59 -0500 Received: from mail-oo1-xc2c.google.com ([2607:f8b0:4864:20::c2c]:46677) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lLFjZ-0006qc-TJ for qemu-devel@nongnu.org; Sat, 13 Mar 2021 20:39:59 -0500 Received: by mail-oo1-xc2c.google.com with SMTP id 125-20020a4a1a830000b02901b6a144a417so2515667oof.13 for ; Sat, 13 Mar 2021 17:39:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=JYC76gk25ZJqeH0pomEyolkS6zmlhFkBUOLPE465UnQ=; b=hjkjS20/VTrb1T31fAaaa0C8eEIZ8yMZ0iG9D299p4G9S0BBMUTGftWUIqPfnaYVxf X5el6ChqZuibFJKqJ84N7ZHg7Z5gcssTeDzfyxd3uct5f8FKg+v2d/WWS9DvK0o/pAY/ IdzJ621rf8+qmQPyrrUPgeNiZBx2OTcawLqxL2r2P9FZ2EE+Ty94S7QWGQM/ZTN65LUb /chXlBdgkPtvOgXqbM6WwbOSkMnTdp3CkQeREYxHcFyquDoIED4gE9+QgnCi0xB8SLHW gQZ/B+mPDPjWvWGY+gWj3+jVvUJErhZOhr0qFwpqMFP7HYuafolzXneh5jdbKwlmZvrf itxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=JYC76gk25ZJqeH0pomEyolkS6zmlhFkBUOLPE465UnQ=; b=odAsCb+MC3P/zOmC+39f4qlFM+05o31osdJ3tcVA+5fwpffeu2xxAUu40CZc6S+LRF NTbnHxQqpPWQj9/lmRwF6JzF0Ny3XEwTye3eC+jRXTvFRmRpRBHdKnqHT6jRSqL92O76 axBx3xG7EoxgclPbw23EYf9BM3cdUUftioQjExaEp4w23wY+PV4SuKZWvRAypP4ZwSJH Lb5t8Rr58t1bsCLtUKYyV3HUNBVtllotPtjvZ+iX/Q7rlbwnzzSFRNxaZfVoGdD3a2Uq 6Mc1tl5bigygoOQSI/vATyd9pnOj24v2sIbW4tsgH/dfXJYm4WRs6+pG3CkN1lJVJuzG YDcw== X-Gm-Message-State: AOAM53151uEIHuE4fn9qlnNDtanig7qJNaVsPq4QUoaPeyuymlMxHSW4 TTcATIzb6AgrdJEZpZP1kvHfGg== X-Google-Smtp-Source: ABdhPJyfFK5Zs/gtUAf1mfOLKbAbqXfg4NYbfV0rwdxGOwvvHTiINwMTrqOzwG76EhB5WX51YfhYlA== X-Received: by 2002:a4a:e382:: with SMTP id l2mr8587547oov.17.1615685995785; Sat, 13 Mar 2021 17:39:55 -0800 (PST) Received: from [10.10.121.52] (fixed-187-189-51-144.totalplay.net. [187.189.51.144]) by smtp.gmail.com with ESMTPSA id k12sm4609854otr.33.2021.03.13.17.39.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 13 Mar 2021 17:39:55 -0800 (PST) Subject: Re: [PATCH v8 26/35] Hexagon (target/hexagon) TCG generation To: Taylor Simpson , "qemu-devel@nongnu.org" References: <1612763186-18161-1-git-send-email-tsimpson@quicinc.com> <1612763186-18161-27-git-send-email-tsimpson@quicinc.com> From: Richard Henderson Message-ID: Date: Sat, 13 Mar 2021 19:39:50 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2607:f8b0:4864:20::c2c; envelope-from=richard.henderson@linaro.org; helo=mail-oo1-xc2c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "ale@rev.ng" , "alex.bennee@linaro.org" , "philmd@redhat.com" , "laurent@vivier.eu" , Brian Cain Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 3/13/21 6:39 PM, Taylor Simpson wrote: > BTW, how can I generate an assert via TCG? You can't, as such. You can call a helper function, which can do whatever. >> Except for HEX_DEBUG, why would we not know whether or not a predicate >> has been >> written twice? It seems like we shouldn't need hex_pred_written for the >> non-debug case. > > It's legal to write to a predicate more than once in the same packet. I repeat -- why would you not know that? You should be able to examine the packet and see whether it does or does not write to a predicate register more than once. Simply always generating code that assumes it has is lazy. r~