target-alpha: Implement cvtql inline.
PATCH 4/5 target-alpha: Implement cvtql inline.
It's a simple mask and shift sequence.
Also, fix a typo in the actual masks used.
Signed-off-by Richard Henderson <[email protected]>
--- target-alpha/helper.h | 4 ---- target-alpha/op_helper.c | 20 -------------------- target-alpha/translate.c | 45 +++++++++++++++++++++++++++++++++++++++------ 3 files changed, 39 insertions(+), 30 deletions(-)
target-alpha/helper.h +0 -4
@@ -89,10 +89,6 @@ DEF_HELPER_FLAGS_1(cvttq, TCG_CALL_CONST, i64, i64) DEF_HELPER_FLAGS_1(cvttq_c, TCG_CALL_CONST, i64, i64) DEF_HELPER_FLAGS_1(cvttq_svic, TCG_CALL_CONST, i64, i64) -DEF_HELPER_FLAGS_1(cvtql, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64) -DEF_HELPER_1(cvtql_v, i64, i64) -DEF_HELPER_1(cvtql_sv, i64, i64) - DEF_HELPER_FLAGS_1(setroundmode, TCG_CALL_CONST, void, i32) DEF_HELPER_FLAGS_1(setflushzero, TCG_CALL_CONST, void, i32)DEF_HELPER_FLAGS_0 (fp_exc_clear,TCG_CALL_CONST , void)
target-alpha/op_helper.c +0 -20
@@ -1159,26 +1159,6 @@ uint64_t helper_cvtlq (uint64_t a)return (lo &0x3FFFFFFF ) | (hi &0xc0000000 ); } -uint64_t helper_cvtql (uint64_t a) -{ -return ((a &0xC0000000 ) <<32 ) | ((a &0x7FFFFFFF ) <<29 ); -} - -uint64_t helper_cvtql_v (uint64_t a) -{ -if ((int32_t )a != (int64_t )a) -helper_excp (EXCP_ARITH ,EXC_M_IOV ); -return helper_cvtql (a); -} - -uint64_t helper_cvtql_sv (uint64_t a) -{ -/* ??? I'm pretty sure there's nothing that /sv needs to do that /v -doesn't do. The only thing I can think is that /sv is a valid -instruction merely for completeness in the ISA. */ -return helper_cvtql_v (a); -} -/* PALcode support special instructions */ #if !defined (CONFIG_USER_ONLY )void helper_hw_rei (void )
target-alpha/translate.c +39 -6
65 lines not on this page · raw message
Signature · 1 line
1.6.6.1