diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2020-09-03 18:18:08 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2021-01-13 08:39:08 -1000 |
commit | 88d4005b098427638d7551aa04ebde4fdd06835b (patch) | |
tree | 31c002571abbef698169d2e15b938ade1c810bf6 /tcg/tcg.c | |
parent | 80c44bba4235daa995af60a055e713d9f2e7b6de (diff) | |
download | qemu-88d4005b098427638d7551aa04ebde4fdd06835b.zip |
tcg: Use tcg_constant_{i32,i64,vec} with gvec expanders
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tcg/tcg.c')
-rw-r--r-- | tcg/tcg.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1474,6 +1474,14 @@ TCGv_vec tcg_constant_vec(TCGType type, unsigned vece, int64_t val) return temp_tcgv_vec(tcg_constant_internal(type, val)); } +TCGv_vec tcg_constant_vec_matching(TCGv_vec match, unsigned vece, int64_t val) +{ + TCGTemp *t = tcgv_vec_temp(match); + + tcg_debug_assert(t->temp_allocated != 0); + return tcg_constant_vec(t->base_type, vece, val); +} + TCGv_i32 tcg_const_i32(int32_t val) { TCGv_i32 t0; |