|
| From: | Richard Henderson |
| Subject: | Re: [PATCH v2 3/3] target/mips: implement Octeon-specific arithmetic instructions |
| Date: | Thu, 9 Jun 2022 08:53:46 -0700 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 |
On 6/9/22 01:23, Pavel Dovgalyuk wrote:
+static bool trans_BADDU(DisasContext *ctx, arg_BADDU *a)
+{
+ TCGv t0, t1;
+
+ if (a->rt == 0) {
+ /* nop */
+ return true;
+ }
I believe that we're standardizing on using gen_store_gpr, and not checking for r0 everywhere.
+static bool trans_EXTS(DisasContext *ctx, arg_EXTS *a)
+{
+ TCGv t0;
+
+ if (a->rt == 0) {
+ /* nop */
+ return true;
+ }
+
+ t0 = tcg_temp_new();
+ gen_load_gpr(t0, a->rs);
+ tcg_gen_sextract_tl(t0, t0, a->p, a->lenm1);
a->lenm1 + 1.
+ tcg_gen_deposit_z_tl(t0, t0, a->p, a->lenm1);
Likewise. r~
| [Prev in Thread] | Current Thread | [Next in Thread] |