qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC PATCH v2 36/44] target/loongarch: Implement vseq vsle vslt


From: Richard Henderson
Subject: Re: [RFC PATCH v2 36/44] target/loongarch: Implement vseq vsle vslt
Date: Sat, 1 Apr 2023 22:27:33 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0

On 3/27/23 20:06, Song Gao wrote:
+static bool do_cmp(DisasContext *ctx, arg_vvv *a, MemOp mop, TCGCond cond,
+                   void (*func)(TCGCond, unsigned, uint32_t, uint32_t,
+                                uint32_t, uint32_t, uint32_t))
+{
+    uint32_t vd_ofs, vj_ofs, vk_ofs;
+
+    CHECK_SXE;
+
+    vd_ofs = vreg_full_offset(a->vd);
+    vj_ofs = vreg_full_offset(a->vj);
+    vk_ofs = vreg_full_offset(a->vk);
+
+    func(cond, mop, vd_ofs, vj_ofs, vk_ofs, 16, 16);

You always pass tcg_gen_cmp_vec.

+static void do_cmpi_vec(TCGCond cond,
+                        unsigned vece, TCGv_vec t, TCGv_vec a, int64_t imm)
+{
+    TCGv_vec t1;
+
+    t1 = tcg_temp_new_vec_matching(t);
+    tcg_gen_dupi_vec(vece, t1, imm);

tcg_constant_vec_matching.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]