aboutsummaryrefslogtreecommitdiff
path: root/tcg/tcg-runtime.h
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2016-11-16 17:32:48 +0100
committerRichard Henderson <rth@twiddle.net>2017-01-10 08:47:48 -0800
commit086920c2c8008f125fd38781072fa25c3ad158ea (patch)
treee7b30c00856a3a1864667e3228e3910e66da8358 /tcg/tcg-runtime.h
parent4ac76910734209dab83ddd3795f08fc7889ef463 (diff)
downloadqemu-086920c2c8008f125fd38781072fa25c3ad158ea.zip
qemu-086920c2c8008f125fd38781072fa25c3ad158ea.tar.gz
qemu-086920c2c8008f125fd38781072fa25c3ad158ea.tar.bz2
tcg: Add helpers for clrsb
The number of actual invocations does not warrent an opcode, and the backends generating it. But at least we can eliminate redundant helpers. Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'tcg/tcg-runtime.h')
-rw-r--r--tcg/tcg-runtime.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tcg/tcg-runtime.h b/tcg/tcg-runtime.h
index eb1cd76..0d30f1a 100644
--- a/tcg/tcg-runtime.h
+++ b/tcg/tcg-runtime.h
@@ -19,6 +19,8 @@ DEF_HELPER_FLAGS_2(clz_i32, TCG_CALL_NO_RWG_SE, i32, i32, i32)
DEF_HELPER_FLAGS_2(ctz_i32, TCG_CALL_NO_RWG_SE, i32, i32, i32)
DEF_HELPER_FLAGS_2(clz_i64, TCG_CALL_NO_RWG_SE, i64, i64, i64)
DEF_HELPER_FLAGS_2(ctz_i64, TCG_CALL_NO_RWG_SE, i64, i64, i64)
+DEF_HELPER_FLAGS_1(clrsb_i32, TCG_CALL_NO_RWG_SE, i32, i32)
+DEF_HELPER_FLAGS_1(clrsb_i64, TCG_CALL_NO_RWG_SE, i64, i64)
DEF_HELPER_FLAGS_1(exit_atomic, TCG_CALL_NO_WG, noreturn, env)