[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 02/10] Specialize tcg_gen_not_i64 for 32-bit tar
From: |
Paul Brook |
Subject: |
Re: [Qemu-devel] [PATCH 02/10] Specialize tcg_gen_not_i64 for 32-bit targets |
Date: |
Tue, 31 Mar 2009 22:45:23 +0000 |
User-agent: |
KMail/1.9.9 |
> #ifdef TCG_TARGET_HAS_not_i64
> tcg_gen_op2_i64(INDEX_op_not_i64, ret, arg);
> +#elif defined(TCG_TARGET_HAS_not_i32)
> + tcg_gen_not_i32(TCGV_LOW(ret), TCGV_LOW(arg));
> + tcg_gen_not_i32(TCGV_HIGH(ret), TCGV_HIGH(arg));
> #else
> tcg_gen_xori_i64(ret, arg, -1);
This is only valid when TCG_TARGET_REG_BITS == 32
Annother possibility is to move the the op_not generation to gen_xori. You
should get this for free then.
Paul
- [Qemu-devel] [PATCH 0/10] tcg: improve logical op support for ppc hosts, Nathan Froyd, 2009/03/28
- [Qemu-devel] [PATCH 05/10] Implement specialized nand_i{32,64}, Nathan Froyd, 2009/03/28
- [Qemu-devel] [PATCH 10/10] Remove r0 from the allocation pool on ppc/ppc64, Nathan Froyd, 2009/03/28
- [Qemu-devel] [PATCH 01/10] Add TCG ops for various logical operations, Nathan Froyd, 2009/03/28
- [Qemu-devel] [PATCH 03/10] Implement specialized andc_i{32,64}, Nathan Froyd, 2009/03/28
- [Qemu-devel] [PATCH 02/10] Specialize tcg_gen_not_i64 for 32-bit targets, Nathan Froyd, 2009/03/28
- Re: [Qemu-devel] [PATCH 02/10] Specialize tcg_gen_not_i64 for 32-bit targets,
Paul Brook <=
- [Qemu-devel] [PATCH 07/10] Implement specialized orc_i{32,64}, Nathan Froyd, 2009/03/28
- Re: [Qemu-devel] [PATCH 0/10] tcg: improve logical op support for ppc hosts, malc, 2009/03/28
- [Qemu-devel] [PATCH 08/10] Implement new logical instructions for ppc, Nathan Froyd, 2009/03/28
- [Qemu-devel] [PATCH 04/10] Implement specialized eqv_{i32,i64}, Nathan Froyd, 2009/03/28
- [Qemu-devel] [PATCH 09/10] Implement new logical instructions for ppc64, Nathan Froyd, 2009/03/28
- [Qemu-devel] [PATCH 06/10] Implement specialized nor_i{32,64}, Nathan Froyd, 2009/03/28