aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2021-11-10 13:17:31 +0100
committerRichard Henderson <richard.henderson@linaro.org>2021-11-11 11:47:01 +0100
commit8d30f0473e0beaf135f81984b3af90c23a228dc2 (patch)
tree21bb8c674843bfd55e359a9bb3ef8fdd87bf2aa2
parentf1f727ac8a19c9106a4c92a98a3cde4b284fcef5 (diff)
downloadqemu-8d30f0473e0beaf135f81984b3af90c23a228dc2.zip
qemu-8d30f0473e0beaf135f81984b3af90c23a228dc2.tar.gz
qemu-8d30f0473e0beaf135f81984b3af90c23a228dc2.tar.bz2
tcg: Document ctpop opcodes
Fixes: a768e4e99247 Resolves: https://gitlab.com/qemu-project/qemu/-/issues/658 Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
-rw-r--r--tcg/README6
1 files changed, 6 insertions, 0 deletions
diff --git a/tcg/README b/tcg/README
index c2e7762..bc15cc3 100644
--- a/tcg/README
+++ b/tcg/README
@@ -254,6 +254,12 @@ t0 = t1 ? clz(t1) : t2
t0 = t1 ? ctz(t1) : t2
+* ctpop_i32/i64 t0, t1
+
+t0 = number of bits set in t1
+With "ctpop" short for "count population", matching
+the function name used in include/qemu/host-utils.h.
+
********* Shifts/Rotates
* shl_i32/i64 t0, t1, t2