aboutsummaryrefslogtreecommitdiff
path: root/tcg/tcg.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2020-09-03 18:18:08 -0700
committerRichard Henderson <richard.henderson@linaro.org>2021-01-13 08:39:08 -1000
commit88d4005b098427638d7551aa04ebde4fdd06835b (patch)
tree31c002571abbef698169d2e15b938ade1c810bf6 /tcg/tcg.c
parent80c44bba4235daa995af60a055e713d9f2e7b6de (diff)
downloadqemu-88d4005b098427638d7551aa04ebde4fdd06835b.zip
qemu-88d4005b098427638d7551aa04ebde4fdd06835b.tar.gz
qemu-88d4005b098427638d7551aa04ebde4fdd06835b.tar.bz2
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.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tcg/tcg.c b/tcg/tcg.c
index ad1348d..1cadfe0 100644
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -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;