[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 08/22] tcg/mips: Split out target constraints to tcg-targe
From: |
Richard Henderson |
Subject: |
Re: [PATCH v2 08/22] tcg/mips: Split out target constraints to tcg-target-con-str.h |
Date: |
Tue, 19 Jan 2021 12:50:42 -1000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
On 1/19/21 4:50 AM, Peter Maydell wrote:
> On Fri, 15 Jan 2021 at 21:14, Richard Henderson
> <richard.henderson@linaro.org> wrote:
>>
>> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
>> ---
>> tcg/mips/tcg-target-con-str.h | 24 ++++++++++++
>> tcg/mips/tcg-target.h | 1 +
>> tcg/mips/tcg-target.c.inc | 72 ++++++++---------------------------
>> 3 files changed, 41 insertions(+), 56 deletions(-)
>> create mode 100644 tcg/mips/tcg-target-con-str.h
>
>> - case 'Z':
>> - /* We are cheating a bit here, using the fact that the register
>> - ZERO is also the register number 0. Hence there is no need
>> - to check for const_args in each instruction. */
>> - ct->ct |= TCG_CT_CONST_ZERO;
>
> This comment seems like it's worth retaining somewhere.
I moved it to the start of tcg_out_op, which is where we do the operand
checking, and therefore perhaps more usefully placed.
r~
- [PATCH v2 09/22] tcg/riscv: Split out target constraints to tcg-target-con-str.h, (continued)
- [PATCH v2 09/22] tcg/riscv: Split out target constraints to tcg-target-con-str.h, Richard Henderson, 2021/01/15
- [PATCH v2 11/22] tcg/sparc: Split out target constraints to tcg-target-con-str.h, Richard Henderson, 2021/01/15
- [PATCH v2 08/22] tcg/mips: Split out target constraints to tcg-target-con-str.h, Richard Henderson, 2021/01/15
- [PATCH v2 10/22] tcg/s390: Split out target constraints to tcg-target-con-str.h, Richard Henderson, 2021/01/15
- [PATCH v2 12/22] tcg: Remove TCG_TARGET_CON_STR_H, Richard Henderson, 2021/01/15
- [PATCH v2 13/22] tcg/i386: Split out constraint sets to tcg-target-con-set.h, Richard Henderson, 2021/01/15
- [PATCH v2 14/22] tcg/aarch64: Split out constraint sets to tcg-target-con-set.h, Richard Henderson, 2021/01/15