diff options
author | Richard Henderson | 2016-11-21 11:13:39 +0100 |
---|---|---|
committer | Richard Henderson | 2017-01-10 17:48:56 +0100 |
commit | a768e4e99247911f00c5c0267c12d4e207d5f6cc (patch) | |
tree | 050f67bd90c849c64c774361c76020896efaf433 /tcg/ppc | |
parent | target-xtensa: Use clrsb helper (diff) | |
download | qemu-a768e4e99247911f00c5c0267c12d4e207d5f6cc.tar.gz qemu-a768e4e99247911f00c5c0267c12d4e207d5f6cc.tar.xz qemu-a768e4e99247911f00c5c0267c12d4e207d5f6cc.zip |
tcg: Add opcode for ctpop
The number of actual invocations of ctpop itself does not warrent
an opcode, but it is very helpful for POWER7 to use in generating
an expansion for ctz.
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'tcg/ppc')
-rw-r--r-- | tcg/ppc/tcg-target.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tcg/ppc/tcg-target.h b/tcg/ppc/tcg-target.h index c798c9c85d..57e66cf3ed 100644 --- a/tcg/ppc/tcg-target.h +++ b/tcg/ppc/tcg-target.h @@ -72,6 +72,7 @@ extern bool have_isa_3_00; #define TCG_TARGET_HAS_nor_i32 1 #define TCG_TARGET_HAS_clz_i32 1 #define TCG_TARGET_HAS_ctz_i32 have_isa_3_00 +#define TCG_TARGET_HAS_ctpop_i32 0 #define TCG_TARGET_HAS_deposit_i32 1 #define TCG_TARGET_HAS_extract_i32 1 #define TCG_TARGET_HAS_sextract_i32 0 @@ -107,6 +108,7 @@ extern bool have_isa_3_00; #define TCG_TARGET_HAS_nor_i64 1 #define TCG_TARGET_HAS_clz_i64 1 #define TCG_TARGET_HAS_ctz_i64 have_isa_3_00 +#define TCG_TARGET_HAS_ctpop_i64 0 #define TCG_TARGET_HAS_deposit_i64 1 #define TCG_TARGET_HAS_extract_i64 1 #define TCG_TARGET_HAS_sextract_i64 0 |