2008-02-24 17:10:06 +03:00
|
|
|
#ifndef TARGET_SPARC64
|
2011-07-04 01:01:59 +04:00
|
|
|
DEF_HELPER_1(rett, void, env)
|
|
|
|
DEF_HELPER_2(wrpsr, void, env, tl)
|
|
|
|
DEF_HELPER_1(rdpsr, tl, env)
|
2024-01-31 11:50:43 +03:00
|
|
|
DEF_HELPER_1(rdasr17, tl, env)
|
2013-02-19 15:45:07 +04:00
|
|
|
DEF_HELPER_1(power_down, void, env)
|
2008-02-24 17:10:06 +03:00
|
|
|
#else
|
2015-08-19 19:43:01 +03:00
|
|
|
DEF_HELPER_FLAGS_2(wrpil, TCG_CALL_NO_RWG, void, env, tl)
|
2016-06-07 19:34:49 +03:00
|
|
|
DEF_HELPER_2(wrgl, void, env, tl)
|
2011-07-04 01:01:59 +04:00
|
|
|
DEF_HELPER_2(wrpstate, void, env, tl)
|
|
|
|
DEF_HELPER_1(done, void, env)
|
|
|
|
DEF_HELPER_1(retry, void, env)
|
2015-08-19 19:43:01 +03:00
|
|
|
DEF_HELPER_FLAGS_1(flushw, TCG_CALL_NO_WG, void, env)
|
|
|
|
DEF_HELPER_FLAGS_1(saved, TCG_CALL_NO_RWG, void, env)
|
|
|
|
DEF_HELPER_FLAGS_1(restored, TCG_CALL_NO_RWG, void, env)
|
2011-07-04 01:01:59 +04:00
|
|
|
DEF_HELPER_1(rdccr, tl, env)
|
|
|
|
DEF_HELPER_2(wrccr, void, env, tl)
|
|
|
|
DEF_HELPER_1(rdcwp, tl, env)
|
|
|
|
DEF_HELPER_2(wrcwp, void, env, tl)
|
2012-10-09 23:53:09 +04:00
|
|
|
DEF_HELPER_FLAGS_2(array8, TCG_CALL_NO_RWG_SE, tl, tl, tl)
|
2015-08-19 19:58:17 +03:00
|
|
|
DEF_HELPER_FLAGS_2(set_softint, TCG_CALL_NO_RWG, void, env, i64)
|
|
|
|
DEF_HELPER_FLAGS_2(clear_softint, TCG_CALL_NO_RWG, void, env, i64)
|
|
|
|
DEF_HELPER_FLAGS_2(write_softint, TCG_CALL_NO_RWG, void, env, i64)
|
2015-08-19 19:43:01 +03:00
|
|
|
DEF_HELPER_FLAGS_2(tick_set_count, TCG_CALL_NO_RWG, void, ptr, i64)
|
|
|
|
DEF_HELPER_FLAGS_3(tick_get_count, TCG_CALL_NO_WG, i64, env, ptr, int)
|
|
|
|
DEF_HELPER_FLAGS_2(tick_set_limit, TCG_CALL_NO_RWG, void, ptr, i64)
|
2008-05-22 22:16:25 +04:00
|
|
|
#endif
|
2011-07-03 12:19:42 +04:00
|
|
|
DEF_HELPER_1(debug, void, env)
|
2011-07-04 01:01:59 +04:00
|
|
|
DEF_HELPER_1(save, void, env)
|
|
|
|
DEF_HELPER_1(restore, void, env)
|
2023-10-15 05:44:03 +03:00
|
|
|
DEF_HELPER_FLAGS_3(udiv, TCG_CALL_NO_WG, i64, env, tl, tl)
|
|
|
|
DEF_HELPER_FLAGS_3(sdiv, TCG_CALL_NO_WG, i64, env, tl, tl)
|
2012-10-06 03:55:05 +04:00
|
|
|
DEF_HELPER_3(taddcctv, tl, env, tl, tl)
|
|
|
|
DEF_HELPER_3(tsubcctv, tl, env, tl, tl)
|
2024-04-12 03:30:07 +03:00
|
|
|
#if !defined(CONFIG_USER_ONLY) && !defined(TARGET_SPARC64)
|
|
|
|
DEF_HELPER_FLAGS_3(ld_code, TCG_CALL_NO_WG, i64, env, tl, i32)
|
|
|
|
#endif
|
2008-05-22 22:16:25 +04:00
|
|
|
#if !defined(CONFIG_USER_ONLY) || defined(TARGET_SPARC64)
|
2015-09-03 23:37:09 +03:00
|
|
|
DEF_HELPER_FLAGS_4(ld_asi, TCG_CALL_NO_WG, i64, env, tl, int, i32)
|
|
|
|
DEF_HELPER_FLAGS_5(st_asi, TCG_CALL_NO_WG, void, env, tl, i64, int, i32)
|
2008-02-24 17:10:06 +03:00
|
|
|
#endif
|
2023-11-03 20:38:34 +03:00
|
|
|
DEF_HELPER_FLAGS_1(get_fsr, TCG_CALL_NO_WG_SE, tl, env)
|
2023-11-05 03:38:34 +03:00
|
|
|
DEF_HELPER_FLAGS_2(set_fsr_nofcc, TCG_CALL_NO_RWG, void, env, i32)
|
2023-11-03 20:38:40 +03:00
|
|
|
DEF_HELPER_FLAGS_2(set_fsr_nofcc_noftt, TCG_CALL_NO_RWG, void, env, i32)
|
2023-11-03 20:38:39 +03:00
|
|
|
DEF_HELPER_FLAGS_2(fsqrts, TCG_CALL_NO_WG, f32, env, f32)
|
|
|
|
DEF_HELPER_FLAGS_2(fsqrtd, TCG_CALL_NO_WG, f64, env, f64)
|
|
|
|
DEF_HELPER_FLAGS_2(fsqrtq, TCG_CALL_NO_WG, i128, env, i128)
|
2023-11-03 20:38:40 +03:00
|
|
|
DEF_HELPER_FLAGS_3(fcmps, TCG_CALL_NO_WG, i32, env, f32, f32)
|
|
|
|
DEF_HELPER_FLAGS_3(fcmpes, TCG_CALL_NO_WG, i32, env, f32, f32)
|
|
|
|
DEF_HELPER_FLAGS_3(fcmpd, TCG_CALL_NO_WG, i32, env, f64, f64)
|
|
|
|
DEF_HELPER_FLAGS_3(fcmped, TCG_CALL_NO_WG, i32, env, f64, f64)
|
|
|
|
DEF_HELPER_FLAGS_3(fcmpq, TCG_CALL_NO_WG, i32, env, i128, i128)
|
|
|
|
DEF_HELPER_FLAGS_3(fcmpeq, TCG_CALL_NO_WG, i32, env, i128, i128)
|
2023-11-05 01:23:35 +03:00
|
|
|
DEF_HELPER_FLAGS_2(flcmps, TCG_CALL_NO_RWG_SE, i32, f32, f32)
|
|
|
|
DEF_HELPER_FLAGS_2(flcmpd, TCG_CALL_NO_RWG_SE, i32, f64, f64)
|
2012-03-19 02:16:04 +04:00
|
|
|
DEF_HELPER_2(raise_exception, noreturn, env, int)
|
2008-09-10 23:54:51 +04:00
|
|
|
|
2023-11-03 20:38:39 +03:00
|
|
|
DEF_HELPER_FLAGS_3(faddd, TCG_CALL_NO_WG, f64, env, f64, f64)
|
|
|
|
DEF_HELPER_FLAGS_3(fsubd, TCG_CALL_NO_WG, f64, env, f64, f64)
|
|
|
|
DEF_HELPER_FLAGS_3(fmuld, TCG_CALL_NO_WG, f64, env, f64, f64)
|
|
|
|
DEF_HELPER_FLAGS_3(fdivd, TCG_CALL_NO_WG, f64, env, f64, f64)
|
2023-11-04 22:13:00 +03:00
|
|
|
DEF_HELPER_FLAGS_5(fmaddd, TCG_CALL_NO_WG, f64, env, f64, f64, f64, i32)
|
2023-11-05 00:59:24 +03:00
|
|
|
DEF_HELPER_FLAGS_3(fnaddd, TCG_CALL_NO_WG, f64, env, f64, f64)
|
|
|
|
DEF_HELPER_FLAGS_3(fnmuld, TCG_CALL_NO_WG, f64, env, f64, f64)
|
2023-11-03 20:38:26 +03:00
|
|
|
|
2023-11-03 20:38:39 +03:00
|
|
|
DEF_HELPER_FLAGS_3(faddq, TCG_CALL_NO_WG, i128, env, i128, i128)
|
|
|
|
DEF_HELPER_FLAGS_3(fsubq, TCG_CALL_NO_WG, i128, env, i128, i128)
|
|
|
|
DEF_HELPER_FLAGS_3(fmulq, TCG_CALL_NO_WG, i128, env, i128, i128)
|
|
|
|
DEF_HELPER_FLAGS_3(fdivq, TCG_CALL_NO_WG, i128, env, i128, i128)
|
2008-03-21 20:56:02 +03:00
|
|
|
|
2023-11-03 20:38:39 +03:00
|
|
|
DEF_HELPER_FLAGS_3(fadds, TCG_CALL_NO_WG, f32, env, f32, f32)
|
|
|
|
DEF_HELPER_FLAGS_3(fsubs, TCG_CALL_NO_WG, f32, env, f32, f32)
|
|
|
|
DEF_HELPER_FLAGS_3(fmuls, TCG_CALL_NO_WG, f32, env, f32, f32)
|
|
|
|
DEF_HELPER_FLAGS_3(fdivs, TCG_CALL_NO_WG, f32, env, f32, f32)
|
2023-11-04 22:13:00 +03:00
|
|
|
DEF_HELPER_FLAGS_5(fmadds, TCG_CALL_NO_WG, f32, env, f32, f32, f32, i32)
|
2023-11-05 00:59:24 +03:00
|
|
|
DEF_HELPER_FLAGS_3(fnadds, TCG_CALL_NO_WG, f32, env, f32, f32)
|
|
|
|
DEF_HELPER_FLAGS_3(fnmuls, TCG_CALL_NO_WG, f32, env, f32, f32)
|
2008-03-21 20:56:02 +03:00
|
|
|
|
2023-11-03 20:38:39 +03:00
|
|
|
DEF_HELPER_FLAGS_3(fsmuld, TCG_CALL_NO_WG, f64, env, f32, f32)
|
2023-11-05 00:59:24 +03:00
|
|
|
DEF_HELPER_FLAGS_3(fnsmuld, TCG_CALL_NO_WG, f64, env, f32, f32)
|
2023-11-03 20:38:39 +03:00
|
|
|
DEF_HELPER_FLAGS_3(fdmulq, TCG_CALL_NO_WG, i128, env, f64, f64)
|
2008-03-21 20:56:02 +03:00
|
|
|
|
2023-11-03 20:38:39 +03:00
|
|
|
DEF_HELPER_FLAGS_2(fitod, TCG_CALL_NO_WG, f64, env, s32)
|
|
|
|
DEF_HELPER_FLAGS_2(fitoq, TCG_CALL_NO_WG, i128, env, s32)
|
2008-09-10 23:54:51 +04:00
|
|
|
|
2023-11-03 20:38:39 +03:00
|
|
|
DEF_HELPER_FLAGS_2(fitos, TCG_CALL_NO_WG, f32, env, s32)
|
2008-09-10 23:54:51 +04:00
|
|
|
|
2008-03-21 20:56:02 +03:00
|
|
|
#ifdef TARGET_SPARC64
|
2023-11-03 20:38:39 +03:00
|
|
|
DEF_HELPER_FLAGS_2(fxtos, TCG_CALL_NO_WG, f32, env, s64)
|
|
|
|
DEF_HELPER_FLAGS_2(fxtod, TCG_CALL_NO_WG, f64, env, s64)
|
|
|
|
DEF_HELPER_FLAGS_2(fxtoq, TCG_CALL_NO_WG, i128, env, s64)
|
2008-03-21 20:56:02 +03:00
|
|
|
#endif
|
2023-11-03 20:38:39 +03:00
|
|
|
DEF_HELPER_FLAGS_2(fdtos, TCG_CALL_NO_WG, f32, env, f64)
|
|
|
|
DEF_HELPER_FLAGS_2(fstod, TCG_CALL_NO_WG, f64, env, f32)
|
|
|
|
DEF_HELPER_FLAGS_2(fqtos, TCG_CALL_NO_WG, f32, env, i128)
|
|
|
|
DEF_HELPER_FLAGS_2(fstoq, TCG_CALL_NO_WG, i128, env, f32)
|
|
|
|
DEF_HELPER_FLAGS_2(fqtod, TCG_CALL_NO_WG, f64, env, i128)
|
|
|
|
DEF_HELPER_FLAGS_2(fdtoq, TCG_CALL_NO_WG, i128, env, f64)
|
|
|
|
DEF_HELPER_FLAGS_2(fstoi, TCG_CALL_NO_WG, s32, env, f32)
|
|
|
|
DEF_HELPER_FLAGS_2(fdtoi, TCG_CALL_NO_WG, s32, env, f64)
|
|
|
|
DEF_HELPER_FLAGS_2(fqtoi, TCG_CALL_NO_WG, s32, env, i128)
|
2008-03-21 20:56:02 +03:00
|
|
|
#ifdef TARGET_SPARC64
|
2023-11-03 20:38:39 +03:00
|
|
|
DEF_HELPER_FLAGS_2(fstox, TCG_CALL_NO_WG, s64, env, f32)
|
|
|
|
DEF_HELPER_FLAGS_2(fdtox, TCG_CALL_NO_WG, s64, env, f64)
|
|
|
|
DEF_HELPER_FLAGS_2(fqtox, TCG_CALL_NO_WG, s64, env, i128)
|
2008-05-22 22:16:25 +04:00
|
|
|
|
2024-05-02 19:55:27 +03:00
|
|
|
DEF_HELPER_FLAGS_2(fpmerge, TCG_CALL_NO_RWG_SE, i64, i32, i32)
|
2024-05-02 19:55:24 +03:00
|
|
|
DEF_HELPER_FLAGS_2(fmul8x16, TCG_CALL_NO_RWG_SE, i64, i32, i64)
|
2024-05-02 19:55:25 +03:00
|
|
|
DEF_HELPER_FLAGS_2(fmul8x16a, TCG_CALL_NO_RWG_SE, i64, i32, s32)
|
2012-10-09 23:53:09 +04:00
|
|
|
DEF_HELPER_FLAGS_2(fmul8sux16, TCG_CALL_NO_RWG_SE, i64, i64, i64)
|
|
|
|
DEF_HELPER_FLAGS_2(fmul8ulx16, TCG_CALL_NO_RWG_SE, i64, i64, i64)
|
2024-05-02 19:55:23 +03:00
|
|
|
DEF_HELPER_FLAGS_1(fexpand, TCG_CALL_NO_RWG_SE, i64, i32)
|
2012-10-09 23:53:09 +04:00
|
|
|
DEF_HELPER_FLAGS_3(pdist, TCG_CALL_NO_RWG_SE, i64, i64, i64, i64)
|
|
|
|
DEF_HELPER_FLAGS_2(fpack16, TCG_CALL_NO_RWG_SE, i32, i64, i64)
|
|
|
|
DEF_HELPER_FLAGS_3(fpack32, TCG_CALL_NO_RWG_SE, i64, i64, i64, i64)
|
|
|
|
DEF_HELPER_FLAGS_2(fpackfix, TCG_CALL_NO_RWG_SE, i32, i64, i64)
|
|
|
|
DEF_HELPER_FLAGS_3(bshuffle, TCG_CALL_NO_RWG_SE, i64, i64, i64, i64)
|
2023-11-04 22:55:49 +03:00
|
|
|
DEF_HELPER_FLAGS_2(cmask8, TCG_CALL_NO_RWG_SE, i64, i64, i64)
|
|
|
|
DEF_HELPER_FLAGS_2(cmask16, TCG_CALL_NO_RWG_SE, i64, i64, i64)
|
|
|
|
DEF_HELPER_FLAGS_2(cmask32, TCG_CALL_NO_RWG_SE, i64, i64, i64)
|
2023-11-05 00:57:27 +03:00
|
|
|
DEF_HELPER_FLAGS_2(fchksm16, TCG_CALL_NO_RWG_SE, i64, i64, i64)
|
2023-11-05 01:40:39 +03:00
|
|
|
DEF_HELPER_FLAGS_2(fmean16, TCG_CALL_NO_RWG_SE, i64, i64, i64)
|
2023-11-05 03:24:01 +03:00
|
|
|
DEF_HELPER_FLAGS_2(fslas16, TCG_CALL_NO_RWG_SE, i64, i64, i64)
|
|
|
|
DEF_HELPER_FLAGS_2(fslas32, TCG_CALL_NO_RWG_SE, i64, i64, i64)
|
2023-11-05 07:31:54 +03:00
|
|
|
#define VIS_CMPHELPER(name) \
|
|
|
|
DEF_HELPER_FLAGS_2(f##name##8, TCG_CALL_NO_RWG_SE, \
|
|
|
|
i64, i64, i64) \
|
2012-10-09 23:53:09 +04:00
|
|
|
DEF_HELPER_FLAGS_2(f##name##16, TCG_CALL_NO_RWG_SE, \
|
2023-11-05 07:31:54 +03:00
|
|
|
i64, i64, i64) \
|
2012-10-09 23:53:09 +04:00
|
|
|
DEF_HELPER_FLAGS_2(f##name##32, TCG_CALL_NO_RWG_SE, \
|
2011-10-20 01:56:43 +04:00
|
|
|
i64, i64, i64)
|
2013-09-15 02:38:30 +04:00
|
|
|
VIS_CMPHELPER(cmpgt)
|
|
|
|
VIS_CMPHELPER(cmpeq)
|
|
|
|
VIS_CMPHELPER(cmple)
|
|
|
|
VIS_CMPHELPER(cmpne)
|
2023-11-05 07:31:54 +03:00
|
|
|
VIS_CMPHELPER(cmpugt)
|
|
|
|
VIS_CMPHELPER(cmpule)
|
2023-11-05 04:31:59 +03:00
|
|
|
DEF_HELPER_FLAGS_2(xmulx, TCG_CALL_NO_RWG_SE, i64, i64, i64)
|
|
|
|
DEF_HELPER_FLAGS_2(xmulxhi, TCG_CALL_NO_RWG_SE, i64, i64, i64)
|
2008-03-21 20:56:02 +03:00
|
|
|
#endif
|
|
|
|
#undef VIS_HELPER
|
|
|
|
#undef VIS_CMPHELPER
|