[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v8 26/35] Hexagon (target/hexagon) TCG generation
From: |
Richard Henderson |
Subject: |
Re: [PATCH v8 26/35] Hexagon (target/hexagon) TCG generation |
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 |
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~