From 086920c2c8008f125fd38781072fa25c3ad158ea Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Wed, 16 Nov 2016 17:32:48 +0100 Subject: tcg: Add helpers for clrsb MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Richard Henderson --- tcg/tcg-runtime.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tcg/tcg-runtime.h') 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) -- cgit v1.1