[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [Qemu-devel] [V6 PATCH 16/18] target-ppc: Floating Merge
From: |
Richard Henderson |
Subject: |
Re: [Qemu-ppc] [Qemu-devel] [V6 PATCH 16/18] target-ppc: Floating Merge Word Instructions |
Date: |
Fri, 10 Jan 2014 13:34:34 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 |
On 01/10/2014 11:08 AM, Tom Musta wrote:
> +static void gen_fmrgow(DisasContext *ctx)
> +{
> + TCGv_i64 a1;
> + if (unlikely(!ctx->fpu_enabled)) {
> + gen_exception(ctx, POWERPC_EXCP_FPU);
> + return;
> + }
> + a1 = tcg_temp_new_i64();
> + tcg_gen_shli_i64(a1, cpu_fpr[rA(ctx->opcode)], 32);
> + tcg_gen_deposit_i64(cpu_fpr[rD(ctx->opcode)],
> + a1, cpu_fpr[rB(ctx->opcode)],
> + 0, 32);
> + tcg_temp_free_i64(a1);
> +}
Better use of the deposit when you use it for the shift also:
tcg_gen_deposit_i64(cpu_fpr[rD],
cpu_fpr[rB],
cpu_fpr[rA], 32, 32);
r~
- [Qemu-ppc] [V6 PATCH 08/18] target-ppc: VSX Stage 4: Add xsdivsp, (continued)
- [Qemu-ppc] [V6 PATCH 08/18] target-ppc: VSX Stage 4: Add xsdivsp, Tom Musta, 2014/01/10
- [Qemu-ppc] [V6 PATCH 09/18] target-ppc: VSX Stage 4: Add xsresp, Tom Musta, 2014/01/10
- [Qemu-ppc] [V6 PATCH 13/18] target-ppc: VSX Stage 4: Add xscvsxdsp and xscvuxdsp, Tom Musta, 2014/01/10
- [Qemu-ppc] [V6 PATCH 14/18] target-ppc: VSX Stage 4: Add xxleqv, xxlnand and xxlorc, Tom Musta, 2014/01/10
- [Qemu-ppc] [V6 PATCH 12/18] target-ppc: VSX Stage 4: Add Scalar SP Fused Multiply-Adds, Tom Musta, 2014/01/10
- [Qemu-ppc] [V6 PATCH 15/18] target-ppc: Move To/From VSR Instructions, Tom Musta, 2014/01/10
- [Qemu-ppc] [V6 PATCH 16/18] target-ppc: Floating Merge Word Instructions, Tom Musta, 2014/01/10
- Re: [Qemu-ppc] [Qemu-devel] [V6 PATCH 16/18] target-ppc: Floating Merge Word Instructions,
Richard Henderson <=
- [Qemu-ppc] [V6 PATCH 10/18] target-ppc: VSX Stage 4: Add xssqrtsp, Tom Musta, 2014/01/10
- [Qemu-ppc] [V6 PATCH 11/18] target-ppc: VSX Stage 4: add xsrsqrtesp, Tom Musta, 2014/01/10
- [Qemu-ppc] [V6 PATCH 17/18] target-ppc: Scalar Round to Single Precision, Tom Musta, 2014/01/10
- [Qemu-ppc] [V6 PATCH 18/18] target-ppc: Scalar Non-Signalling Conversions, Tom Musta, 2014/01/10