diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2021-05-03 16:47:37 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2021-06-04 11:50:11 -0700 |
commit | a4fbbd779a29b912299bc2830f0157513080ddb7 (patch) | |
tree | 0c14a4e1595a9938e968458b7d21fa6c8725f559 /tcg/arm | |
parent | 1cbd2d914939ee6028e9688d4ba859a528c28405 (diff) | |
download | qemu-a4fbbd779a29b912299bc2830f0157513080ddb7.zip qemu-a4fbbd779a29b912299bc2830f0157513080ddb7.tar.gz qemu-a4fbbd779a29b912299bc2830f0157513080ddb7.tar.bz2 |
tcg: Change parameters for tcg_target_const_match
Change the return value to bool, because that's what is should
have been from the start. Pass the ct mask instead of the whole
TCGArgConstraint, as that's the only part that's relevant.
Change the value argument to int64_t. We will need the extra
width for 32-bit hosts wanting to match vector constants.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tcg/arm')
-rw-r--r-- | tcg/arm/tcg-target.c.inc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tcg/arm/tcg-target.c.inc b/tcg/arm/tcg-target.c.inc index 8457108..eb4f42e 100644 --- a/tcg/arm/tcg-target.c.inc +++ b/tcg/arm/tcg-target.c.inc @@ -301,11 +301,8 @@ static inline int check_fit_imm(uint32_t imm) * mov operand2: values represented with x << (2 * y), x < 0x100 * add, sub, eor...: ditto */ -static inline int tcg_target_const_match(tcg_target_long val, TCGType type, - const TCGArgConstraint *arg_ct) +static bool tcg_target_const_match(int64_t val, TCGType type, int ct) { - int ct; - ct = arg_ct->ct; if (ct & TCG_CT_CONST) { return 1; } else if ((ct & TCG_CT_CONST_ARM) && check_fit_imm(val)) { |