Skip to content

Commit 0619dee

Browse files
authored
Merge pull request #1861 from basavesh/dev
Backport qemu/qemu@75b208c
2 parents 6e97e59 + cf5e759 commit 0619dee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

qemu/target/i386/translate.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -4219,14 +4219,14 @@ static void gen_sse(CPUX86State *env, DisasContext *s, int b,
42194219
}
42204220
ot = mo_64_32(s->dflag);
42214221
gen_ldst_modrm(env, s, modrm, ot, OR_TMP0, 0);
4222-
/* Note that by zero-extending the mask operand, we
4222+
/* Note that by zero-extending the source operand, we
42234223
automatically handle zero-extending the result. */
42244224
if (ot == MO_64) {
42254225
tcg_gen_mov_tl(tcg_ctx, s->T1, tcg_ctx->cpu_regs[s->vex_v]);
42264226
} else {
42274227
tcg_gen_ext32u_tl(tcg_ctx, s->T1, tcg_ctx->cpu_regs[s->vex_v]);
42284228
}
4229-
gen_helper_pdep(tcg_ctx, tcg_ctx->cpu_regs[reg], s->T0, s->T1);
4229+
gen_helper_pdep(tcg_ctx, tcg_ctx->cpu_regs[reg], s->T1, s->T0);
42304230
break;
42314231

42324232
case 0x2f5: /* pext Gy, By, Ey */
@@ -4237,14 +4237,14 @@ static void gen_sse(CPUX86State *env, DisasContext *s, int b,
42374237
}
42384238
ot = mo_64_32(s->dflag);
42394239
gen_ldst_modrm(env, s, modrm, ot, OR_TMP0, 0);
4240-
/* Note that by zero-extending the mask operand, we
4240+
/* Note that by zero-extending the source operand, we
42414241
automatically handle zero-extending the result. */
42424242
if (ot == MO_64) {
42434243
tcg_gen_mov_tl(tcg_ctx, s->T1, tcg_ctx->cpu_regs[s->vex_v]);
42444244
} else {
42454245
tcg_gen_ext32u_tl(tcg_ctx, s->T1, tcg_ctx->cpu_regs[s->vex_v]);
42464246
}
4247-
gen_helper_pext(tcg_ctx, tcg_ctx->cpu_regs[reg], s->T0, s->T1);
4247+
gen_helper_pext(tcg_ctx, tcg_ctx->cpu_regs[reg], s->T1, s->T0);
42484248
break;
42494249

42504250
case 0x1f6: /* adcx Gy, Ey */

0 commit comments

Comments
 (0)