2012-10-09 23:53:08 +04:00
|
|
|
DEF_HELPER_FLAGS_1(sxtb16, TCG_CALL_NO_RWG_SE, i32, i32)
|
|
|
|
DEF_HELPER_FLAGS_1(uxtb16, TCG_CALL_NO_RWG_SE, i32, i32)
|
2008-11-17 17:43:54 +03:00
|
|
|
|
2012-09-05 00:19:15 +04:00
|
|
|
DEF_HELPER_3(add_setq, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_3(add_saturate, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_3(sub_saturate, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_3(add_usaturate, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_3(sub_usaturate, i32, env, i32, i32)
|
2012-10-09 23:53:08 +04:00
|
|
|
DEF_HELPER_FLAGS_2(sdiv, TCG_CALL_NO_RWG_SE, s32, s32, s32)
|
|
|
|
DEF_HELPER_FLAGS_2(udiv, TCG_CALL_NO_RWG_SE, i32, i32, i32)
|
|
|
|
DEF_HELPER_FLAGS_1(rbit, TCG_CALL_NO_RWG_SE, i32, i32)
|
2008-03-31 07:45:50 +04:00
|
|
|
|
2008-03-31 07:46:33 +04:00
|
|
|
#define PAS_OP(pfx) \
|
2008-11-17 17:43:54 +03:00
|
|
|
DEF_HELPER_3(pfx ## add8, i32, i32, i32, ptr) \
|
|
|
|
DEF_HELPER_3(pfx ## sub8, i32, i32, i32, ptr) \
|
|
|
|
DEF_HELPER_3(pfx ## sub16, i32, i32, i32, ptr) \
|
|
|
|
DEF_HELPER_3(pfx ## add16, i32, i32, i32, ptr) \
|
|
|
|
DEF_HELPER_3(pfx ## addsubx, i32, i32, i32, ptr) \
|
|
|
|
DEF_HELPER_3(pfx ## subaddx, i32, i32, i32, ptr)
|
2008-03-31 07:46:33 +04:00
|
|
|
|
|
|
|
PAS_OP(s)
|
|
|
|
PAS_OP(u)
|
|
|
|
#undef PAS_OP
|
|
|
|
|
|
|
|
#define PAS_OP(pfx) \
|
2008-11-17 17:43:54 +03:00
|
|
|
DEF_HELPER_2(pfx ## add8, i32, i32, i32) \
|
|
|
|
DEF_HELPER_2(pfx ## sub8, i32, i32, i32) \
|
|
|
|
DEF_HELPER_2(pfx ## sub16, i32, i32, i32) \
|
|
|
|
DEF_HELPER_2(pfx ## add16, i32, i32, i32) \
|
|
|
|
DEF_HELPER_2(pfx ## addsubx, i32, i32, i32) \
|
|
|
|
DEF_HELPER_2(pfx ## subaddx, i32, i32, i32)
|
2008-03-31 07:46:33 +04:00
|
|
|
PAS_OP(q)
|
|
|
|
PAS_OP(sh)
|
|
|
|
PAS_OP(uq)
|
|
|
|
PAS_OP(uh)
|
|
|
|
#undef PAS_OP
|
|
|
|
|
2012-09-05 00:19:15 +04:00
|
|
|
DEF_HELPER_3(ssat, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_3(usat, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_3(ssat16, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_3(usat16, i32, env, i32, i32)
|
2008-11-17 17:43:54 +03:00
|
|
|
|
2012-10-09 23:53:08 +04:00
|
|
|
DEF_HELPER_FLAGS_2(usad8, TCG_CALL_NO_RWG_SE, i32, i32, i32)
|
2008-11-17 17:43:54 +03:00
|
|
|
|
2012-10-09 23:53:08 +04:00
|
|
|
DEF_HELPER_FLAGS_3(sel_flags, TCG_CALL_NO_RWG_SE,
|
2012-10-05 18:04:45 +04:00
|
|
|
i32, i32, i32, i32)
|
2014-04-15 22:18:38 +04:00
|
|
|
DEF_HELPER_2(exception_internal, void, env, i32)
|
2015-05-29 13:28:50 +03:00
|
|
|
DEF_HELPER_4(exception_with_syndrome, void, env, i32, i32, i32)
|
2018-03-23 21:26:46 +03:00
|
|
|
DEF_HELPER_2(exception_bkpt_insn, void, env, i32)
|
2016-03-04 14:30:21 +03:00
|
|
|
DEF_HELPER_1(setend, void, env)
|
2017-10-31 14:50:50 +03:00
|
|
|
DEF_HELPER_2(wfi, void, env, i32)
|
2014-03-10 18:56:30 +04:00
|
|
|
DEF_HELPER_1(wfe, void, env)
|
2015-07-06 12:05:44 +03:00
|
|
|
DEF_HELPER_1(yield, void, env)
|
2014-09-29 21:48:50 +04:00
|
|
|
DEF_HELPER_1(pre_hvc, void, env)
|
2014-09-29 21:48:50 +04:00
|
|
|
DEF_HELPER_2(pre_smc, void, env, i32)
|
2008-11-17 17:43:54 +03:00
|
|
|
|
2015-10-13 12:56:28 +03:00
|
|
|
DEF_HELPER_1(check_breakpoints, void, env)
|
|
|
|
|
2012-09-05 00:08:34 +04:00
|
|
|
DEF_HELPER_3(cpsr_write, void, env, i32, i32)
|
2016-02-23 18:36:43 +03:00
|
|
|
DEF_HELPER_2(cpsr_write_eret, void, env, i32)
|
2012-09-05 00:19:15 +04:00
|
|
|
DEF_HELPER_1(cpsr_read, i32, env)
|
2008-11-17 17:43:54 +03:00
|
|
|
|
|
|
|
DEF_HELPER_3(v7m_msr, void, env, i32, i32)
|
|
|
|
DEF_HELPER_2(v7m_mrs, i32, env, i32)
|
|
|
|
|
2017-09-07 15:54:54 +03:00
|
|
|
DEF_HELPER_2(v7m_bxns, void, env, i32)
|
2017-10-09 16:48:33 +03:00
|
|
|
DEF_HELPER_2(v7m_blxns, void, env, i32)
|
2017-09-07 15:54:54 +03:00
|
|
|
|
2017-12-13 20:59:24 +03:00
|
|
|
DEF_HELPER_3(v7m_tt, i32, env, i32, i32)
|
|
|
|
|
2019-04-29 19:36:02 +03:00
|
|
|
DEF_HELPER_1(v7m_preserve_fp_state, void, env)
|
|
|
|
|
2019-04-29 19:36:03 +03:00
|
|
|
DEF_HELPER_2(v7m_vlstm, void, env, i32)
|
2019-04-29 19:36:03 +03:00
|
|
|
DEF_HELPER_2(v7m_vlldm, void, env, i32)
|
2019-04-29 19:36:03 +03:00
|
|
|
|
2018-10-08 16:55:04 +03:00
|
|
|
DEF_HELPER_2(v8m_stackcheck, void, env, i32)
|
|
|
|
|
2016-02-11 14:17:31 +03:00
|
|
|
DEF_HELPER_4(access_check_cp_reg, void, env, ptr, i32, i32)
|
2012-06-20 15:57:06 +04:00
|
|
|
DEF_HELPER_3(set_cp_reg, void, env, ptr, i32)
|
|
|
|
DEF_HELPER_2(get_cp_reg, i32, env, ptr)
|
|
|
|
DEF_HELPER_3(set_cp_reg64, void, env, ptr, i64)
|
|
|
|
DEF_HELPER_2(get_cp_reg64, i64, env, ptr)
|
|
|
|
|
2008-11-17 17:43:54 +03:00
|
|
|
DEF_HELPER_2(get_r13_banked, i32, env, i32)
|
|
|
|
DEF_HELPER_3(set_r13_banked, void, env, i32, i32)
|
|
|
|
|
2016-03-16 20:05:58 +03:00
|
|
|
DEF_HELPER_3(mrs_banked, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_4(msr_banked, void, env, i32, i32, i32)
|
|
|
|
|
2012-09-05 00:19:15 +04:00
|
|
|
DEF_HELPER_2(get_user_reg, i32, env, i32)
|
2012-09-05 00:08:34 +04:00
|
|
|
DEF_HELPER_3(set_user_reg, void, env, i32, i32)
|
2008-11-17 17:43:54 +03:00
|
|
|
|
2019-10-23 18:00:48 +03:00
|
|
|
DEF_HELPER_FLAGS_2(rebuild_hflags_m32, TCG_CALL_NO_RWG, void, env, int)
|
2019-12-12 14:47:34 +03:00
|
|
|
DEF_HELPER_FLAGS_1(rebuild_hflags_a32_newel, TCG_CALL_NO_RWG, void, env)
|
2019-10-23 18:00:48 +03:00
|
|
|
DEF_HELPER_FLAGS_2(rebuild_hflags_a32, TCG_CALL_NO_RWG, void, env, int)
|
|
|
|
DEF_HELPER_FLAGS_2(rebuild_hflags_a64, TCG_CALL_NO_RWG, void, env, int)
|
|
|
|
|
2008-11-17 17:43:54 +03:00
|
|
|
DEF_HELPER_1(vfp_get_fpscr, i32, env)
|
|
|
|
DEF_HELPER_2(vfp_set_fpscr, void, env, i32)
|
|
|
|
|
2011-05-25 18:51:48 +04:00
|
|
|
DEF_HELPER_3(vfp_adds, f32, f32, f32, ptr)
|
|
|
|
DEF_HELPER_3(vfp_addd, f64, f64, f64, ptr)
|
|
|
|
DEF_HELPER_3(vfp_subs, f32, f32, f32, ptr)
|
|
|
|
DEF_HELPER_3(vfp_subd, f64, f64, f64, ptr)
|
|
|
|
DEF_HELPER_3(vfp_muls, f32, f32, f32, ptr)
|
|
|
|
DEF_HELPER_3(vfp_muld, f64, f64, f64, ptr)
|
|
|
|
DEF_HELPER_3(vfp_divs, f32, f32, f32, ptr)
|
|
|
|
DEF_HELPER_3(vfp_divd, f64, f64, f64, ptr)
|
2014-01-05 02:15:49 +04:00
|
|
|
DEF_HELPER_3(vfp_maxs, f32, f32, f32, ptr)
|
|
|
|
DEF_HELPER_3(vfp_maxd, f64, f64, f64, ptr)
|
|
|
|
DEF_HELPER_3(vfp_mins, f32, f32, f32, ptr)
|
|
|
|
DEF_HELPER_3(vfp_mind, f64, f64, f64, ptr)
|
|
|
|
DEF_HELPER_3(vfp_maxnums, f32, f32, f32, ptr)
|
|
|
|
DEF_HELPER_3(vfp_maxnumd, f64, f64, f64, ptr)
|
|
|
|
DEF_HELPER_3(vfp_minnums, f32, f32, f32, ptr)
|
|
|
|
DEF_HELPER_3(vfp_minnumd, f64, f64, f64, ptr)
|
2008-11-17 17:43:54 +03:00
|
|
|
DEF_HELPER_1(vfp_negs, f32, f32)
|
|
|
|
DEF_HELPER_1(vfp_negd, f64, f64)
|
|
|
|
DEF_HELPER_1(vfp_abss, f32, f32)
|
|
|
|
DEF_HELPER_1(vfp_absd, f64, f64)
|
|
|
|
DEF_HELPER_2(vfp_sqrts, f32, f32, env)
|
|
|
|
DEF_HELPER_2(vfp_sqrtd, f64, f64, env)
|
|
|
|
DEF_HELPER_3(vfp_cmps, void, f32, f32, env)
|
|
|
|
DEF_HELPER_3(vfp_cmpd, void, f64, f64, env)
|
|
|
|
DEF_HELPER_3(vfp_cmpes, void, f32, f32, env)
|
|
|
|
DEF_HELPER_3(vfp_cmped, void, f64, f64, env)
|
|
|
|
|
|
|
|
DEF_HELPER_2(vfp_fcvtds, f64, f32, env)
|
|
|
|
DEF_HELPER_2(vfp_fcvtsd, f32, f64, env)
|
|
|
|
|
2018-03-01 14:05:54 +03:00
|
|
|
DEF_HELPER_2(vfp_uitoh, f16, i32, ptr)
|
2011-05-19 17:46:19 +04:00
|
|
|
DEF_HELPER_2(vfp_uitos, f32, i32, ptr)
|
|
|
|
DEF_HELPER_2(vfp_uitod, f64, i32, ptr)
|
2018-03-01 14:05:54 +03:00
|
|
|
DEF_HELPER_2(vfp_sitoh, f16, i32, ptr)
|
2011-05-19 17:46:19 +04:00
|
|
|
DEF_HELPER_2(vfp_sitos, f32, i32, ptr)
|
|
|
|
DEF_HELPER_2(vfp_sitod, f64, i32, ptr)
|
|
|
|
|
2018-03-01 14:05:54 +03:00
|
|
|
DEF_HELPER_2(vfp_touih, i32, f16, ptr)
|
2011-05-19 17:46:19 +04:00
|
|
|
DEF_HELPER_2(vfp_touis, i32, f32, ptr)
|
|
|
|
DEF_HELPER_2(vfp_touid, i32, f64, ptr)
|
2018-03-01 14:05:54 +03:00
|
|
|
DEF_HELPER_2(vfp_touizh, i32, f16, ptr)
|
2011-05-19 17:46:19 +04:00
|
|
|
DEF_HELPER_2(vfp_touizs, i32, f32, ptr)
|
|
|
|
DEF_HELPER_2(vfp_touizd, i32, f64, ptr)
|
2018-06-29 17:11:10 +03:00
|
|
|
DEF_HELPER_2(vfp_tosih, s32, f16, ptr)
|
|
|
|
DEF_HELPER_2(vfp_tosis, s32, f32, ptr)
|
|
|
|
DEF_HELPER_2(vfp_tosid, s32, f64, ptr)
|
|
|
|
DEF_HELPER_2(vfp_tosizh, s32, f16, ptr)
|
|
|
|
DEF_HELPER_2(vfp_tosizs, s32, f32, ptr)
|
|
|
|
DEF_HELPER_2(vfp_tosizd, s32, f64, ptr)
|
2011-05-19 17:46:19 +04:00
|
|
|
|
2014-01-07 21:19:13 +04:00
|
|
|
DEF_HELPER_3(vfp_toshs_round_to_zero, i32, f32, i32, ptr)
|
|
|
|
DEF_HELPER_3(vfp_tosls_round_to_zero, i32, f32, i32, ptr)
|
|
|
|
DEF_HELPER_3(vfp_touhs_round_to_zero, i32, f32, i32, ptr)
|
|
|
|
DEF_HELPER_3(vfp_touls_round_to_zero, i32, f32, i32, ptr)
|
|
|
|
DEF_HELPER_3(vfp_toshd_round_to_zero, i64, f64, i32, ptr)
|
|
|
|
DEF_HELPER_3(vfp_tosld_round_to_zero, i64, f64, i32, ptr)
|
|
|
|
DEF_HELPER_3(vfp_touhd_round_to_zero, i64, f64, i32, ptr)
|
|
|
|
DEF_HELPER_3(vfp_tould_round_to_zero, i64, f64, i32, ptr)
|
2018-05-10 20:10:58 +03:00
|
|
|
DEF_HELPER_3(vfp_touhh, i32, f16, i32, ptr)
|
|
|
|
DEF_HELPER_3(vfp_toshh, i32, f16, i32, ptr)
|
2018-05-15 16:58:43 +03:00
|
|
|
DEF_HELPER_3(vfp_toulh, i32, f16, i32, ptr)
|
|
|
|
DEF_HELPER_3(vfp_toslh, i32, f16, i32, ptr)
|
|
|
|
DEF_HELPER_3(vfp_touqh, i64, f16, i32, ptr)
|
|
|
|
DEF_HELPER_3(vfp_tosqh, i64, f16, i32, ptr)
|
2014-01-07 21:19:14 +04:00
|
|
|
DEF_HELPER_3(vfp_toshs, i32, f32, i32, ptr)
|
|
|
|
DEF_HELPER_3(vfp_tosls, i32, f32, i32, ptr)
|
|
|
|
DEF_HELPER_3(vfp_tosqs, i64, f32, i32, ptr)
|
|
|
|
DEF_HELPER_3(vfp_touhs, i32, f32, i32, ptr)
|
|
|
|
DEF_HELPER_3(vfp_touls, i32, f32, i32, ptr)
|
|
|
|
DEF_HELPER_3(vfp_touqs, i64, f32, i32, ptr)
|
|
|
|
DEF_HELPER_3(vfp_toshd, i64, f64, i32, ptr)
|
|
|
|
DEF_HELPER_3(vfp_tosld, i64, f64, i32, ptr)
|
|
|
|
DEF_HELPER_3(vfp_tosqd, i64, f64, i32, ptr)
|
|
|
|
DEF_HELPER_3(vfp_touhd, i64, f64, i32, ptr)
|
|
|
|
DEF_HELPER_3(vfp_tould, i64, f64, i32, ptr)
|
|
|
|
DEF_HELPER_3(vfp_touqd, i64, f64, i32, ptr)
|
2011-05-19 17:46:19 +04:00
|
|
|
DEF_HELPER_3(vfp_shtos, f32, i32, i32, ptr)
|
|
|
|
DEF_HELPER_3(vfp_sltos, f32, i32, i32, ptr)
|
2014-01-07 21:19:14 +04:00
|
|
|
DEF_HELPER_3(vfp_sqtos, f32, i64, i32, ptr)
|
2011-05-19 17:46:19 +04:00
|
|
|
DEF_HELPER_3(vfp_uhtos, f32, i32, i32, ptr)
|
|
|
|
DEF_HELPER_3(vfp_ultos, f32, i32, i32, ptr)
|
2014-01-07 21:19:14 +04:00
|
|
|
DEF_HELPER_3(vfp_uqtos, f32, i64, i32, ptr)
|
2011-05-19 17:46:19 +04:00
|
|
|
DEF_HELPER_3(vfp_shtod, f64, i64, i32, ptr)
|
|
|
|
DEF_HELPER_3(vfp_sltod, f64, i64, i32, ptr)
|
2014-01-07 21:19:14 +04:00
|
|
|
DEF_HELPER_3(vfp_sqtod, f64, i64, i32, ptr)
|
2011-05-19 17:46:19 +04:00
|
|
|
DEF_HELPER_3(vfp_uhtod, f64, i64, i32, ptr)
|
|
|
|
DEF_HELPER_3(vfp_ultod, f64, i64, i32, ptr)
|
2014-01-07 21:19:14 +04:00
|
|
|
DEF_HELPER_3(vfp_uqtod, f64, i64, i32, ptr)
|
2018-03-01 14:05:54 +03:00
|
|
|
DEF_HELPER_3(vfp_sltoh, f16, i32, i32, ptr)
|
|
|
|
DEF_HELPER_3(vfp_ultoh, f16, i32, i32, ptr)
|
2018-05-15 16:58:43 +03:00
|
|
|
DEF_HELPER_3(vfp_sqtoh, f16, i64, i32, ptr)
|
|
|
|
DEF_HELPER_3(vfp_uqtoh, f16, i64, i32, ptr)
|
2008-11-17 17:43:54 +03:00
|
|
|
|
2018-03-01 14:05:47 +03:00
|
|
|
DEF_HELPER_FLAGS_2(set_rmode, TCG_CALL_NO_RWG, i32, i32, ptr)
|
2014-01-31 18:47:35 +04:00
|
|
|
DEF_HELPER_FLAGS_2(set_neon_rmode, TCG_CALL_NO_RWG, i32, i32, env)
|
2014-01-07 21:19:14 +04:00
|
|
|
|
2018-05-07 15:17:16 +03:00
|
|
|
DEF_HELPER_FLAGS_3(vfp_fcvt_f16_to_f32, TCG_CALL_NO_RWG, f32, f16, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_3(vfp_fcvt_f32_to_f16, TCG_CALL_NO_RWG, f16, f32, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_3(vfp_fcvt_f16_to_f64, TCG_CALL_NO_RWG, f64, f16, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_3(vfp_fcvt_f64_to_f16, TCG_CALL_NO_RWG, f16, f64, ptr, i32)
|
2009-11-19 19:45:20 +03:00
|
|
|
|
2011-10-19 20:14:07 +04:00
|
|
|
DEF_HELPER_4(vfp_muladdd, f64, f64, f64, f64, ptr)
|
|
|
|
DEF_HELPER_4(vfp_muladds, f32, f32, f32, f32, ptr)
|
|
|
|
|
2008-11-17 17:43:54 +03:00
|
|
|
DEF_HELPER_3(recps_f32, f32, f32, f32, env)
|
|
|
|
DEF_HELPER_3(rsqrts_f32, f32, f32, f32, env)
|
2018-03-01 14:05:54 +03:00
|
|
|
DEF_HELPER_FLAGS_2(recpe_f16, TCG_CALL_NO_RWG, f16, f16, ptr)
|
2014-03-17 20:31:52 +04:00
|
|
|
DEF_HELPER_FLAGS_2(recpe_f32, TCG_CALL_NO_RWG, f32, f32, ptr)
|
|
|
|
DEF_HELPER_FLAGS_2(recpe_f64, TCG_CALL_NO_RWG, f64, f64, ptr)
|
2018-03-01 14:05:55 +03:00
|
|
|
DEF_HELPER_FLAGS_2(rsqrte_f16, TCG_CALL_NO_RWG, f16, f16, ptr)
|
2014-03-17 20:31:53 +04:00
|
|
|
DEF_HELPER_FLAGS_2(rsqrte_f32, TCG_CALL_NO_RWG, f32, f32, ptr)
|
|
|
|
DEF_HELPER_FLAGS_2(rsqrte_f64, TCG_CALL_NO_RWG, f64, f64, ptr)
|
2014-03-17 20:31:52 +04:00
|
|
|
DEF_HELPER_2(recpe_u32, i32, i32, ptr)
|
2014-03-17 20:31:53 +04:00
|
|
|
DEF_HELPER_FLAGS_2(rsqrte_u32, TCG_CALL_NO_RWG, i32, i32, ptr)
|
2018-01-25 14:45:28 +03:00
|
|
|
DEF_HELPER_FLAGS_4(neon_tbl, TCG_CALL_NO_RWG, i32, i32, i32, ptr, i32)
|
2012-09-05 00:19:15 +04:00
|
|
|
|
|
|
|
DEF_HELPER_3(shl_cc, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_3(shr_cc, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_3(sar_cc, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_3(ror_cc, i32, env, i32, i32)
|
2008-03-31 07:47:48 +04:00
|
|
|
|
2014-01-07 21:19:14 +04:00
|
|
|
DEF_HELPER_FLAGS_2(rints_exact, TCG_CALL_NO_RWG, f32, f32, ptr)
|
|
|
|
DEF_HELPER_FLAGS_2(rintd_exact, TCG_CALL_NO_RWG, f64, f64, ptr)
|
|
|
|
DEF_HELPER_FLAGS_2(rints, TCG_CALL_NO_RWG, f32, f32, ptr)
|
|
|
|
DEF_HELPER_FLAGS_2(rintd, TCG_CALL_NO_RWG, f64, f64, ptr)
|
|
|
|
|
2019-02-21 21:17:46 +03:00
|
|
|
DEF_HELPER_FLAGS_2(vjcvt, TCG_CALL_NO_RWG, i32, f64, env)
|
|
|
|
DEF_HELPER_FLAGS_2(fjcvtzs, TCG_CALL_NO_RWG, i64, f64, ptr)
|
|
|
|
|
2019-12-01 15:20:16 +03:00
|
|
|
DEF_HELPER_FLAGS_3(check_hcr_el2_trap, TCG_CALL_NO_WG, void, env, i32, i32)
|
|
|
|
|
2008-03-31 07:48:30 +04:00
|
|
|
/* neon_helper.c */
|
2014-03-19 03:10:06 +04:00
|
|
|
DEF_HELPER_FLAGS_3(neon_qadd_u8, TCG_CALL_NO_RWG, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_FLAGS_3(neon_qadd_s8, TCG_CALL_NO_RWG, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_FLAGS_3(neon_qadd_u16, TCG_CALL_NO_RWG, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_FLAGS_3(neon_qadd_s16, TCG_CALL_NO_RWG, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_FLAGS_3(neon_qadd_u32, TCG_CALL_NO_RWG, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_FLAGS_3(neon_qadd_s32, TCG_CALL_NO_RWG, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_FLAGS_3(neon_uqadd_s8, TCG_CALL_NO_RWG, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_FLAGS_3(neon_uqadd_s16, TCG_CALL_NO_RWG, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_FLAGS_3(neon_uqadd_s32, TCG_CALL_NO_RWG, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_FLAGS_3(neon_uqadd_s64, TCG_CALL_NO_RWG, i64, env, i64, i64)
|
|
|
|
DEF_HELPER_FLAGS_3(neon_sqadd_u8, TCG_CALL_NO_RWG, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_FLAGS_3(neon_sqadd_u16, TCG_CALL_NO_RWG, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_FLAGS_3(neon_sqadd_u32, TCG_CALL_NO_RWG, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_FLAGS_3(neon_sqadd_u64, TCG_CALL_NO_RWG, i64, env, i64, i64)
|
2011-05-25 17:31:02 +04:00
|
|
|
DEF_HELPER_3(neon_qsub_u8, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_3(neon_qsub_s8, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_3(neon_qsub_u16, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_3(neon_qsub_s16, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_3(neon_qsub_u32, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_3(neon_qsub_s32, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_3(neon_qadd_u64, i64, env, i64, i64)
|
|
|
|
DEF_HELPER_3(neon_qadd_s64, i64, env, i64, i64)
|
|
|
|
DEF_HELPER_3(neon_qsub_u64, i64, env, i64, i64)
|
|
|
|
DEF_HELPER_3(neon_qsub_s64, i64, env, i64, i64)
|
2008-11-17 17:43:54 +03:00
|
|
|
|
|
|
|
DEF_HELPER_2(neon_hadd_s8, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_hadd_u8, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_hadd_s16, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_hadd_u16, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_hadd_s32, s32, s32, s32)
|
|
|
|
DEF_HELPER_2(neon_hadd_u32, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_rhadd_s8, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_rhadd_u8, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_rhadd_s16, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_rhadd_u16, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_rhadd_s32, s32, s32, s32)
|
|
|
|
DEF_HELPER_2(neon_rhadd_u32, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_hsub_s8, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_hsub_u8, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_hsub_s16, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_hsub_u16, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_hsub_s32, s32, s32, s32)
|
|
|
|
DEF_HELPER_2(neon_hsub_u32, i32, i32, i32)
|
|
|
|
|
|
|
|
DEF_HELPER_2(neon_cgt_u8, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_cgt_s8, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_cgt_u16, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_cgt_s16, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_cgt_u32, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_cgt_s32, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_cge_u8, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_cge_s8, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_cge_u16, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_cge_s16, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_cge_u32, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_cge_s32, i32, i32, i32)
|
|
|
|
|
|
|
|
DEF_HELPER_2(neon_pmin_u8, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_pmin_s8, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_pmin_u16, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_pmin_s16, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_pmax_u8, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_pmax_s8, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_pmax_u16, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_pmax_s16, i32, i32, i32)
|
|
|
|
|
|
|
|
DEF_HELPER_2(neon_abd_u8, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_abd_s8, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_abd_u16, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_abd_s16, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_abd_u32, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_abd_s32, i32, i32, i32)
|
|
|
|
|
|
|
|
DEF_HELPER_2(neon_shl_u8, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_shl_s8, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_shl_u16, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_shl_s16, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_shl_u32, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_shl_s32, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_shl_u64, i64, i64, i64)
|
|
|
|
DEF_HELPER_2(neon_shl_s64, i64, i64, i64)
|
|
|
|
DEF_HELPER_2(neon_rshl_u8, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_rshl_s8, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_rshl_u16, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_rshl_s16, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_rshl_u32, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_rshl_s32, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_rshl_u64, i64, i64, i64)
|
|
|
|
DEF_HELPER_2(neon_rshl_s64, i64, i64, i64)
|
2011-05-25 17:31:02 +04:00
|
|
|
DEF_HELPER_3(neon_qshl_u8, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_3(neon_qshl_s8, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_3(neon_qshl_u16, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_3(neon_qshl_s16, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_3(neon_qshl_u32, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_3(neon_qshl_s32, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_3(neon_qshl_u64, i64, env, i64, i64)
|
|
|
|
DEF_HELPER_3(neon_qshl_s64, i64, env, i64, i64)
|
2013-09-15 02:38:30 +04:00
|
|
|
DEF_HELPER_3(neon_qshlu_s8, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_3(neon_qshlu_s16, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_3(neon_qshlu_s32, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_3(neon_qshlu_s64, i64, env, i64, i64)
|
2011-05-25 17:31:02 +04:00
|
|
|
DEF_HELPER_3(neon_qrshl_u8, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_3(neon_qrshl_s8, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_3(neon_qrshl_u16, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_3(neon_qrshl_s16, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_3(neon_qrshl_u32, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_3(neon_qrshl_s32, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_3(neon_qrshl_u64, i64, env, i64, i64)
|
|
|
|
DEF_HELPER_3(neon_qrshl_s64, i64, env, i64, i64)
|
2008-11-17 17:43:54 +03:00
|
|
|
|
|
|
|
DEF_HELPER_2(neon_add_u8, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_add_u16, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_padd_u8, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_padd_u16, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_sub_u8, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_sub_u16, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_mul_u8, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_mul_u16, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_mul_p8, i32, i32, i32)
|
2011-02-10 22:07:55 +03:00
|
|
|
DEF_HELPER_2(neon_mull_p8, i64, i32, i32)
|
2008-11-17 17:43:54 +03:00
|
|
|
|
|
|
|
DEF_HELPER_2(neon_tst_u8, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_tst_u16, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_tst_u32, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_ceq_u8, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_ceq_u16, i32, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_ceq_u32, i32, i32, i32)
|
|
|
|
|
|
|
|
DEF_HELPER_1(neon_clz_u8, i32, i32)
|
|
|
|
DEF_HELPER_1(neon_clz_u16, i32, i32)
|
|
|
|
DEF_HELPER_1(neon_cls_s8, i32, i32)
|
|
|
|
DEF_HELPER_1(neon_cls_s16, i32, i32)
|
|
|
|
DEF_HELPER_1(neon_cls_s32, i32, i32)
|
|
|
|
DEF_HELPER_1(neon_cnt_u8, i32, i32)
|
2014-02-04 03:31:51 +04:00
|
|
|
DEF_HELPER_FLAGS_1(neon_rbit_u8, TCG_CALL_NO_RWG_SE, i32, i32)
|
2008-11-17 17:43:54 +03:00
|
|
|
|
2011-05-25 17:31:02 +04:00
|
|
|
DEF_HELPER_3(neon_qdmulh_s16, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_3(neon_qrdmulh_s16, i32, env, i32, i32)
|
2018-03-02 13:45:41 +03:00
|
|
|
DEF_HELPER_4(neon_qrdmlah_s16, i32, env, i32, i32, i32)
|
|
|
|
DEF_HELPER_4(neon_qrdmlsh_s16, i32, env, i32, i32, i32)
|
2011-05-25 17:31:02 +04:00
|
|
|
DEF_HELPER_3(neon_qdmulh_s32, i32, env, i32, i32)
|
|
|
|
DEF_HELPER_3(neon_qrdmulh_s32, i32, env, i32, i32)
|
2018-03-02 13:45:41 +03:00
|
|
|
DEF_HELPER_4(neon_qrdmlah_s32, i32, env, s32, s32, s32)
|
|
|
|
DEF_HELPER_4(neon_qrdmlsh_s32, i32, env, s32, s32, s32)
|
2008-11-17 17:43:54 +03:00
|
|
|
|
|
|
|
DEF_HELPER_1(neon_narrow_u8, i32, i64)
|
|
|
|
DEF_HELPER_1(neon_narrow_u16, i32, i64)
|
2011-05-25 17:31:02 +04:00
|
|
|
DEF_HELPER_2(neon_unarrow_sat8, i32, env, i64)
|
|
|
|
DEF_HELPER_2(neon_narrow_sat_u8, i32, env, i64)
|
|
|
|
DEF_HELPER_2(neon_narrow_sat_s8, i32, env, i64)
|
|
|
|
DEF_HELPER_2(neon_unarrow_sat16, i32, env, i64)
|
|
|
|
DEF_HELPER_2(neon_narrow_sat_u16, i32, env, i64)
|
|
|
|
DEF_HELPER_2(neon_narrow_sat_s16, i32, env, i64)
|
|
|
|
DEF_HELPER_2(neon_unarrow_sat32, i32, env, i64)
|
|
|
|
DEF_HELPER_2(neon_narrow_sat_u32, i32, env, i64)
|
|
|
|
DEF_HELPER_2(neon_narrow_sat_s32, i32, env, i64)
|
2008-11-17 17:43:54 +03:00
|
|
|
DEF_HELPER_1(neon_narrow_high_u8, i32, i64)
|
|
|
|
DEF_HELPER_1(neon_narrow_high_u16, i32, i64)
|
|
|
|
DEF_HELPER_1(neon_narrow_round_high_u8, i32, i64)
|
|
|
|
DEF_HELPER_1(neon_narrow_round_high_u16, i32, i64)
|
|
|
|
DEF_HELPER_1(neon_widen_u8, i64, i32)
|
|
|
|
DEF_HELPER_1(neon_widen_s8, i64, i32)
|
|
|
|
DEF_HELPER_1(neon_widen_u16, i64, i32)
|
|
|
|
DEF_HELPER_1(neon_widen_s16, i64, i32)
|
|
|
|
|
|
|
|
DEF_HELPER_2(neon_addl_u16, i64, i64, i64)
|
|
|
|
DEF_HELPER_2(neon_addl_u32, i64, i64, i64)
|
|
|
|
DEF_HELPER_2(neon_paddl_u16, i64, i64, i64)
|
|
|
|
DEF_HELPER_2(neon_paddl_u32, i64, i64, i64)
|
|
|
|
DEF_HELPER_2(neon_subl_u16, i64, i64, i64)
|
|
|
|
DEF_HELPER_2(neon_subl_u32, i64, i64, i64)
|
2011-05-25 17:31:02 +04:00
|
|
|
DEF_HELPER_3(neon_addl_saturate_s32, i64, env, i64, i64)
|
|
|
|
DEF_HELPER_3(neon_addl_saturate_s64, i64, env, i64, i64)
|
2008-11-17 17:43:54 +03:00
|
|
|
DEF_HELPER_2(neon_abdl_u16, i64, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_abdl_s16, i64, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_abdl_u32, i64, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_abdl_s32, i64, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_abdl_u64, i64, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_abdl_s64, i64, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_mull_u8, i64, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_mull_s8, i64, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_mull_u16, i64, i32, i32)
|
|
|
|
DEF_HELPER_2(neon_mull_s16, i64, i32, i32)
|
|
|
|
|
|
|
|
DEF_HELPER_1(neon_negl_u16, i64, i64)
|
|
|
|
DEF_HELPER_1(neon_negl_u32, i64, i64)
|
|
|
|
|
2014-03-19 03:10:06 +04:00
|
|
|
DEF_HELPER_FLAGS_2(neon_qabs_s8, TCG_CALL_NO_RWG, i32, env, i32)
|
|
|
|
DEF_HELPER_FLAGS_2(neon_qabs_s16, TCG_CALL_NO_RWG, i32, env, i32)
|
|
|
|
DEF_HELPER_FLAGS_2(neon_qabs_s32, TCG_CALL_NO_RWG, i32, env, i32)
|
|
|
|
DEF_HELPER_FLAGS_2(neon_qabs_s64, TCG_CALL_NO_RWG, i64, env, i64)
|
|
|
|
DEF_HELPER_FLAGS_2(neon_qneg_s8, TCG_CALL_NO_RWG, i32, env, i32)
|
|
|
|
DEF_HELPER_FLAGS_2(neon_qneg_s16, TCG_CALL_NO_RWG, i32, env, i32)
|
|
|
|
DEF_HELPER_FLAGS_2(neon_qneg_s32, TCG_CALL_NO_RWG, i32, env, i32)
|
|
|
|
DEF_HELPER_FLAGS_2(neon_qneg_s64, TCG_CALL_NO_RWG, i64, env, i64)
|
2008-11-17 17:43:54 +03:00
|
|
|
|
2011-05-25 17:49:19 +04:00
|
|
|
DEF_HELPER_3(neon_abd_f32, i32, i32, i32, ptr)
|
|
|
|
DEF_HELPER_3(neon_ceq_f32, i32, i32, i32, ptr)
|
|
|
|
DEF_HELPER_3(neon_cge_f32, i32, i32, i32, ptr)
|
|
|
|
DEF_HELPER_3(neon_cgt_f32, i32, i32, i32, ptr)
|
|
|
|
DEF_HELPER_3(neon_acge_f32, i32, i32, i32, ptr)
|
|
|
|
DEF_HELPER_3(neon_acgt_f32, i32, i32, i32, ptr)
|
2014-02-20 14:35:50 +04:00
|
|
|
DEF_HELPER_3(neon_acge_f64, i64, i64, i64, ptr)
|
|
|
|
DEF_HELPER_3(neon_acgt_f64, i64, i64, i64, ptr)
|
2008-03-31 07:48:30 +04:00
|
|
|
|
2008-03-31 07:49:05 +04:00
|
|
|
/* iwmmxt_helper.c */
|
2008-11-17 17:43:54 +03:00
|
|
|
DEF_HELPER_2(iwmmxt_maddsq, i64, i64, i64)
|
|
|
|
DEF_HELPER_2(iwmmxt_madduq, i64, i64, i64)
|
|
|
|
DEF_HELPER_2(iwmmxt_sadb, i64, i64, i64)
|
|
|
|
DEF_HELPER_2(iwmmxt_sadw, i64, i64, i64)
|
|
|
|
DEF_HELPER_2(iwmmxt_mulslw, i64, i64, i64)
|
|
|
|
DEF_HELPER_2(iwmmxt_mulshw, i64, i64, i64)
|
|
|
|
DEF_HELPER_2(iwmmxt_mululw, i64, i64, i64)
|
|
|
|
DEF_HELPER_2(iwmmxt_muluhw, i64, i64, i64)
|
|
|
|
DEF_HELPER_2(iwmmxt_macsw, i64, i64, i64)
|
|
|
|
DEF_HELPER_2(iwmmxt_macuw, i64, i64, i64)
|
|
|
|
DEF_HELPER_1(iwmmxt_setpsr_nz, i32, i64)
|
2008-03-31 07:49:05 +04:00
|
|
|
|
2011-05-25 17:22:31 +04:00
|
|
|
#define DEF_IWMMXT_HELPER_SIZE_ENV(name) \
|
|
|
|
DEF_HELPER_3(iwmmxt_##name##b, i64, env, i64, i64) \
|
|
|
|
DEF_HELPER_3(iwmmxt_##name##w, i64, env, i64, i64) \
|
|
|
|
DEF_HELPER_3(iwmmxt_##name##l, i64, env, i64, i64) \
|
|
|
|
|
|
|
|
DEF_IWMMXT_HELPER_SIZE_ENV(unpackl)
|
|
|
|
DEF_IWMMXT_HELPER_SIZE_ENV(unpackh)
|
|
|
|
|
|
|
|
DEF_HELPER_2(iwmmxt_unpacklub, i64, env, i64)
|
|
|
|
DEF_HELPER_2(iwmmxt_unpackluw, i64, env, i64)
|
|
|
|
DEF_HELPER_2(iwmmxt_unpacklul, i64, env, i64)
|
|
|
|
DEF_HELPER_2(iwmmxt_unpackhub, i64, env, i64)
|
|
|
|
DEF_HELPER_2(iwmmxt_unpackhuw, i64, env, i64)
|
|
|
|
DEF_HELPER_2(iwmmxt_unpackhul, i64, env, i64)
|
|
|
|
DEF_HELPER_2(iwmmxt_unpacklsb, i64, env, i64)
|
|
|
|
DEF_HELPER_2(iwmmxt_unpacklsw, i64, env, i64)
|
|
|
|
DEF_HELPER_2(iwmmxt_unpacklsl, i64, env, i64)
|
|
|
|
DEF_HELPER_2(iwmmxt_unpackhsb, i64, env, i64)
|
|
|
|
DEF_HELPER_2(iwmmxt_unpackhsw, i64, env, i64)
|
|
|
|
DEF_HELPER_2(iwmmxt_unpackhsl, i64, env, i64)
|
|
|
|
|
|
|
|
DEF_IWMMXT_HELPER_SIZE_ENV(cmpeq)
|
|
|
|
DEF_IWMMXT_HELPER_SIZE_ENV(cmpgtu)
|
|
|
|
DEF_IWMMXT_HELPER_SIZE_ENV(cmpgts)
|
|
|
|
|
|
|
|
DEF_IWMMXT_HELPER_SIZE_ENV(mins)
|
|
|
|
DEF_IWMMXT_HELPER_SIZE_ENV(minu)
|
|
|
|
DEF_IWMMXT_HELPER_SIZE_ENV(maxs)
|
|
|
|
DEF_IWMMXT_HELPER_SIZE_ENV(maxu)
|
|
|
|
|
|
|
|
DEF_IWMMXT_HELPER_SIZE_ENV(subn)
|
|
|
|
DEF_IWMMXT_HELPER_SIZE_ENV(addn)
|
|
|
|
DEF_IWMMXT_HELPER_SIZE_ENV(subu)
|
|
|
|
DEF_IWMMXT_HELPER_SIZE_ENV(addu)
|
|
|
|
DEF_IWMMXT_HELPER_SIZE_ENV(subs)
|
|
|
|
DEF_IWMMXT_HELPER_SIZE_ENV(adds)
|
|
|
|
|
|
|
|
DEF_HELPER_3(iwmmxt_avgb0, i64, env, i64, i64)
|
|
|
|
DEF_HELPER_3(iwmmxt_avgb1, i64, env, i64, i64)
|
|
|
|
DEF_HELPER_3(iwmmxt_avgw0, i64, env, i64, i64)
|
|
|
|
DEF_HELPER_3(iwmmxt_avgw1, i64, env, i64, i64)
|
2008-11-17 17:43:54 +03:00
|
|
|
|
|
|
|
DEF_HELPER_3(iwmmxt_align, i64, i64, i64, i32)
|
|
|
|
DEF_HELPER_4(iwmmxt_insr, i64, i64, i32, i32, i32)
|
|
|
|
|
|
|
|
DEF_HELPER_1(iwmmxt_bcstb, i64, i32)
|
|
|
|
DEF_HELPER_1(iwmmxt_bcstw, i64, i32)
|
|
|
|
DEF_HELPER_1(iwmmxt_bcstl, i64, i32)
|
|
|
|
|
|
|
|
DEF_HELPER_1(iwmmxt_addcb, i64, i64)
|
|
|
|
DEF_HELPER_1(iwmmxt_addcw, i64, i64)
|
|
|
|
DEF_HELPER_1(iwmmxt_addcl, i64, i64)
|
|
|
|
|
|
|
|
DEF_HELPER_1(iwmmxt_msbb, i32, i64)
|
|
|
|
DEF_HELPER_1(iwmmxt_msbw, i32, i64)
|
|
|
|
DEF_HELPER_1(iwmmxt_msbl, i32, i64)
|
|
|
|
|
2011-05-25 17:22:31 +04:00
|
|
|
DEF_HELPER_3(iwmmxt_srlw, i64, env, i64, i32)
|
|
|
|
DEF_HELPER_3(iwmmxt_srll, i64, env, i64, i32)
|
|
|
|
DEF_HELPER_3(iwmmxt_srlq, i64, env, i64, i32)
|
|
|
|
DEF_HELPER_3(iwmmxt_sllw, i64, env, i64, i32)
|
|
|
|
DEF_HELPER_3(iwmmxt_slll, i64, env, i64, i32)
|
|
|
|
DEF_HELPER_3(iwmmxt_sllq, i64, env, i64, i32)
|
|
|
|
DEF_HELPER_3(iwmmxt_sraw, i64, env, i64, i32)
|
|
|
|
DEF_HELPER_3(iwmmxt_sral, i64, env, i64, i32)
|
|
|
|
DEF_HELPER_3(iwmmxt_sraq, i64, env, i64, i32)
|
|
|
|
DEF_HELPER_3(iwmmxt_rorw, i64, env, i64, i32)
|
|
|
|
DEF_HELPER_3(iwmmxt_rorl, i64, env, i64, i32)
|
|
|
|
DEF_HELPER_3(iwmmxt_rorq, i64, env, i64, i32)
|
|
|
|
DEF_HELPER_3(iwmmxt_shufh, i64, env, i64, i32)
|
|
|
|
|
|
|
|
DEF_HELPER_3(iwmmxt_packuw, i64, env, i64, i64)
|
|
|
|
DEF_HELPER_3(iwmmxt_packul, i64, env, i64, i64)
|
|
|
|
DEF_HELPER_3(iwmmxt_packuq, i64, env, i64, i64)
|
|
|
|
DEF_HELPER_3(iwmmxt_packsw, i64, env, i64, i64)
|
|
|
|
DEF_HELPER_3(iwmmxt_packsl, i64, env, i64, i64)
|
|
|
|
DEF_HELPER_3(iwmmxt_packsq, i64, env, i64, i64)
|
2008-11-17 17:43:54 +03:00
|
|
|
|
|
|
|
DEF_HELPER_3(iwmmxt_muladdsl, i64, i64, i32, i32)
|
|
|
|
DEF_HELPER_3(iwmmxt_muladdsw, i64, i64, i32, i32)
|
|
|
|
DEF_HELPER_3(iwmmxt_muladdswl, i64, i64, i32, i32)
|
|
|
|
|
2018-01-25 14:45:28 +03:00
|
|
|
DEF_HELPER_FLAGS_2(neon_unzip8, TCG_CALL_NO_RWG, void, ptr, ptr)
|
|
|
|
DEF_HELPER_FLAGS_2(neon_unzip16, TCG_CALL_NO_RWG, void, ptr, ptr)
|
|
|
|
DEF_HELPER_FLAGS_2(neon_qunzip8, TCG_CALL_NO_RWG, void, ptr, ptr)
|
|
|
|
DEF_HELPER_FLAGS_2(neon_qunzip16, TCG_CALL_NO_RWG, void, ptr, ptr)
|
|
|
|
DEF_HELPER_FLAGS_2(neon_qunzip32, TCG_CALL_NO_RWG, void, ptr, ptr)
|
|
|
|
DEF_HELPER_FLAGS_2(neon_zip8, TCG_CALL_NO_RWG, void, ptr, ptr)
|
|
|
|
DEF_HELPER_FLAGS_2(neon_zip16, TCG_CALL_NO_RWG, void, ptr, ptr)
|
|
|
|
DEF_HELPER_FLAGS_2(neon_qzip8, TCG_CALL_NO_RWG, void, ptr, ptr)
|
|
|
|
DEF_HELPER_FLAGS_2(neon_qzip16, TCG_CALL_NO_RWG, void, ptr, ptr)
|
|
|
|
DEF_HELPER_FLAGS_2(neon_qzip32, TCG_CALL_NO_RWG, void, ptr, ptr)
|
2011-02-14 13:22:48 +03:00
|
|
|
|
2018-01-25 14:45:28 +03:00
|
|
|
DEF_HELPER_FLAGS_3(crypto_aese, TCG_CALL_NO_RWG, void, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_3(crypto_aesmc, TCG_CALL_NO_RWG, void, ptr, ptr, i32)
|
2013-12-17 23:42:25 +04:00
|
|
|
|
2018-01-25 14:45:28 +03:00
|
|
|
DEF_HELPER_FLAGS_4(crypto_sha1_3reg, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_2(crypto_sha1h, TCG_CALL_NO_RWG, void, ptr, ptr)
|
|
|
|
DEF_HELPER_FLAGS_2(crypto_sha1su1, TCG_CALL_NO_RWG, void, ptr, ptr)
|
2014-06-09 18:43:23 +04:00
|
|
|
|
2018-01-25 14:45:28 +03:00
|
|
|
DEF_HELPER_FLAGS_3(crypto_sha256h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr)
|
|
|
|
DEF_HELPER_FLAGS_3(crypto_sha256h2, TCG_CALL_NO_RWG, void, ptr, ptr, ptr)
|
|
|
|
DEF_HELPER_FLAGS_2(crypto_sha256su0, TCG_CALL_NO_RWG, void, ptr, ptr)
|
|
|
|
DEF_HELPER_FLAGS_3(crypto_sha256su1, TCG_CALL_NO_RWG, void, ptr, ptr, ptr)
|
2014-06-09 18:43:23 +04:00
|
|
|
|
2018-02-09 13:40:28 +03:00
|
|
|
DEF_HELPER_FLAGS_3(crypto_sha512h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr)
|
|
|
|
DEF_HELPER_FLAGS_3(crypto_sha512h2, TCG_CALL_NO_RWG, void, ptr, ptr, ptr)
|
|
|
|
DEF_HELPER_FLAGS_2(crypto_sha512su0, TCG_CALL_NO_RWG, void, ptr, ptr)
|
|
|
|
DEF_HELPER_FLAGS_3(crypto_sha512su1, TCG_CALL_NO_RWG, void, ptr, ptr, ptr)
|
|
|
|
|
2018-02-09 13:40:28 +03:00
|
|
|
DEF_HELPER_FLAGS_5(crypto_sm3tt, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32, i32)
|
|
|
|
DEF_HELPER_FLAGS_3(crypto_sm3partw1, TCG_CALL_NO_RWG, void, ptr, ptr, ptr)
|
|
|
|
DEF_HELPER_FLAGS_3(crypto_sm3partw2, TCG_CALL_NO_RWG, void, ptr, ptr, ptr)
|
|
|
|
|
2018-02-09 13:40:28 +03:00
|
|
|
DEF_HELPER_FLAGS_2(crypto_sm4e, TCG_CALL_NO_RWG, void, ptr, ptr)
|
|
|
|
DEF_HELPER_FLAGS_3(crypto_sm4ekey, TCG_CALL_NO_RWG, void, ptr, ptr, ptr)
|
|
|
|
|
2014-02-26 21:20:07 +04:00
|
|
|
DEF_HELPER_FLAGS_3(crc32, TCG_CALL_NO_RWG_SE, i32, i32, i32, i32)
|
|
|
|
DEF_HELPER_FLAGS_3(crc32c, TCG_CALL_NO_RWG_SE, i32, i32, i32, i32)
|
2014-04-15 22:18:41 +04:00
|
|
|
DEF_HELPER_2(dc_zva, void, env, i64)
|
2014-02-26 21:20:07 +04:00
|
|
|
|
2014-06-09 18:43:23 +04:00
|
|
|
DEF_HELPER_FLAGS_2(neon_pmull_64_lo, TCG_CALL_NO_RWG_SE, i64, i64, i64)
|
|
|
|
DEF_HELPER_FLAGS_2(neon_pmull_64_hi, TCG_CALL_NO_RWG_SE, i64, i64, i64)
|
|
|
|
|
2018-03-02 13:45:42 +03:00
|
|
|
DEF_HELPER_FLAGS_5(gvec_qrdmlah_s16, TCG_CALL_NO_RWG,
|
|
|
|
void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_5(gvec_qrdmlsh_s16, TCG_CALL_NO_RWG,
|
|
|
|
void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_5(gvec_qrdmlah_s32, TCG_CALL_NO_RWG,
|
|
|
|
void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_5(gvec_qrdmlsh_s32, TCG_CALL_NO_RWG,
|
|
|
|
void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
|
2018-06-29 17:11:13 +03:00
|
|
|
DEF_HELPER_FLAGS_4(gvec_sdot_b, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_4(gvec_udot_b, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_4(gvec_sdot_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_4(gvec_udot_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32)
|
|
|
|
|
2018-06-29 17:11:15 +03:00
|
|
|
DEF_HELPER_FLAGS_4(gvec_sdot_idx_b, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_4(gvec_udot_idx_b, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_4(gvec_sdot_idx_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_4(gvec_udot_idx_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32)
|
|
|
|
|
2018-03-02 13:45:43 +03:00
|
|
|
DEF_HELPER_FLAGS_5(gvec_fcaddh, TCG_CALL_NO_RWG,
|
|
|
|
void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_5(gvec_fcadds, TCG_CALL_NO_RWG,
|
|
|
|
void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_5(gvec_fcaddd, TCG_CALL_NO_RWG,
|
|
|
|
void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
|
2018-03-02 13:45:44 +03:00
|
|
|
DEF_HELPER_FLAGS_5(gvec_fcmlah, TCG_CALL_NO_RWG,
|
|
|
|
void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_5(gvec_fcmlah_idx, TCG_CALL_NO_RWG,
|
|
|
|
void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_5(gvec_fcmlas, TCG_CALL_NO_RWG,
|
|
|
|
void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_5(gvec_fcmlas_idx, TCG_CALL_NO_RWG,
|
|
|
|
void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_5(gvec_fcmlad, TCG_CALL_NO_RWG,
|
|
|
|
void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
|
2018-06-29 17:11:09 +03:00
|
|
|
DEF_HELPER_FLAGS_4(gvec_frecpe_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_4(gvec_frecpe_s, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_4(gvec_frecpe_d, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32)
|
|
|
|
|
|
|
|
DEF_HELPER_FLAGS_4(gvec_frsqrte_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_4(gvec_frsqrte_s, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_4(gvec_frsqrte_d, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, i32)
|
|
|
|
|
2018-06-15 16:57:15 +03:00
|
|
|
DEF_HELPER_FLAGS_5(gvec_fadd_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_5(gvec_fadd_s, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_5(gvec_fadd_d, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
|
|
|
|
DEF_HELPER_FLAGS_5(gvec_fsub_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_5(gvec_fsub_s, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_5(gvec_fsub_d, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
|
|
|
|
DEF_HELPER_FLAGS_5(gvec_fmul_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_5(gvec_fmul_s, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_5(gvec_fmul_d, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
|
|
|
|
DEF_HELPER_FLAGS_5(gvec_ftsmul_h, TCG_CALL_NO_RWG,
|
|
|
|
void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_5(gvec_ftsmul_s, TCG_CALL_NO_RWG,
|
|
|
|
void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_5(gvec_ftsmul_d, TCG_CALL_NO_RWG,
|
|
|
|
void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
|
2018-06-29 17:11:08 +03:00
|
|
|
DEF_HELPER_FLAGS_5(gvec_fmul_idx_h, TCG_CALL_NO_RWG,
|
|
|
|
void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_5(gvec_fmul_idx_s, TCG_CALL_NO_RWG,
|
|
|
|
void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_5(gvec_fmul_idx_d, TCG_CALL_NO_RWG,
|
|
|
|
void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
|
|
|
|
DEF_HELPER_FLAGS_6(gvec_fmla_idx_h, TCG_CALL_NO_RWG,
|
|
|
|
void, ptr, ptr, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_6(gvec_fmla_idx_s, TCG_CALL_NO_RWG,
|
|
|
|
void, ptr, ptr, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_6(gvec_fmla_idx_d, TCG_CALL_NO_RWG,
|
|
|
|
void, ptr, ptr, ptr, ptr, ptr, i32)
|
|
|
|
|
2019-02-15 12:56:41 +03:00
|
|
|
DEF_HELPER_FLAGS_5(gvec_uqadd_b, TCG_CALL_NO_RWG,
|
|
|
|
void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_5(gvec_uqadd_h, TCG_CALL_NO_RWG,
|
|
|
|
void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_5(gvec_uqadd_s, TCG_CALL_NO_RWG,
|
|
|
|
void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_5(gvec_uqadd_d, TCG_CALL_NO_RWG,
|
|
|
|
void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_5(gvec_sqadd_b, TCG_CALL_NO_RWG,
|
|
|
|
void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_5(gvec_sqadd_h, TCG_CALL_NO_RWG,
|
|
|
|
void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_5(gvec_sqadd_s, TCG_CALL_NO_RWG,
|
|
|
|
void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_5(gvec_sqadd_d, TCG_CALL_NO_RWG,
|
|
|
|
void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_5(gvec_uqsub_b, TCG_CALL_NO_RWG,
|
|
|
|
void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_5(gvec_uqsub_h, TCG_CALL_NO_RWG,
|
|
|
|
void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_5(gvec_uqsub_s, TCG_CALL_NO_RWG,
|
|
|
|
void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_5(gvec_uqsub_d, TCG_CALL_NO_RWG,
|
|
|
|
void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_5(gvec_sqsub_b, TCG_CALL_NO_RWG,
|
|
|
|
void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_5(gvec_sqsub_h, TCG_CALL_NO_RWG,
|
|
|
|
void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_5(gvec_sqsub_s, TCG_CALL_NO_RWG,
|
|
|
|
void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_5(gvec_sqsub_d, TCG_CALL_NO_RWG,
|
|
|
|
void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
|
2019-02-28 13:55:16 +03:00
|
|
|
DEF_HELPER_FLAGS_5(gvec_fmlal_a32, TCG_CALL_NO_RWG,
|
|
|
|
void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_5(gvec_fmlal_a64, TCG_CALL_NO_RWG,
|
|
|
|
void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_5(gvec_fmlal_idx_a32, TCG_CALL_NO_RWG,
|
|
|
|
void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
DEF_HELPER_FLAGS_5(gvec_fmlal_idx_a64, TCG_CALL_NO_RWG,
|
|
|
|
void, ptr, ptr, ptr, ptr, i32)
|
|
|
|
|
2019-03-01 23:05:01 +03:00
|
|
|
DEF_HELPER_FLAGS_2(frint32_s, TCG_CALL_NO_RWG, f32, f32, ptr)
|
|
|
|
DEF_HELPER_FLAGS_2(frint64_s, TCG_CALL_NO_RWG, f32, f32, ptr)
|
|
|
|
DEF_HELPER_FLAGS_2(frint32_d, TCG_CALL_NO_RWG, f64, f64, ptr)
|
|
|
|
DEF_HELPER_FLAGS_2(frint64_d, TCG_CALL_NO_RWG, f64, f64, ptr)
|
|
|
|
|
2013-12-17 23:42:32 +04:00
|
|
|
#ifdef TARGET_AARCH64
|
|
|
|
#include "helper-a64.h"
|
2018-05-18 19:48:08 +03:00
|
|
|
#include "helper-sve.h"
|
2013-12-17 23:42:32 +04:00
|
|
|
#endif
|