blob: c3d8a3ee491e2937f07d4beda179e562543257bc [file] [log] [blame]
Richard Henderson55fddd62012-03-24 09:51:15 -07001DEF_HELPER_3(excp, noreturn, env, int, int)
Aurelien Jarno0c0dcdf2012-10-09 21:53:08 +02002DEF_HELPER_FLAGS_1(load_pcc, TCG_CALL_NO_RWG_SE, i64, env)
aurel32ae8ecd42008-09-16 22:44:02 +00003
Richard Henderson4d1628e2014-07-03 13:18:26 -07004DEF_HELPER_FLAGS_3(check_overflow, TCG_CALL_NO_WG, void, env, i64, i64)
aurel3204acd302008-09-18 13:45:14 +00005
Aurelien Jarno0c0dcdf2012-10-09 21:53:08 +02006DEF_HELPER_FLAGS_1(ctpop, TCG_CALL_NO_RWG_SE, i64, i64)
7DEF_HELPER_FLAGS_1(ctlz, TCG_CALL_NO_RWG_SE, i64, i64)
8DEF_HELPER_FLAGS_1(cttz, TCG_CALL_NO_RWG_SE, i64, i64)
aurel32b3249f62008-09-17 22:04:52 +00009
Aurelien Jarno0c0dcdf2012-10-09 21:53:08 +020010DEF_HELPER_FLAGS_2(zap, TCG_CALL_NO_RWG_SE, i64, i64, i64)
11DEF_HELPER_FLAGS_2(zapnot, TCG_CALL_NO_RWG_SE, i64, i64, i64)
aurel32b3249f62008-09-17 22:04:52 +000012
Richard Henderson112e4512015-08-05 11:04:11 -070013DEF_HELPER_FLAGS_1(cmpbe0, TCG_CALL_NO_RWG_SE, i64, i64)
Aurelien Jarno0c0dcdf2012-10-09 21:53:08 +020014DEF_HELPER_FLAGS_2(cmpbge, TCG_CALL_NO_RWG_SE, i64, i64, i64)
aurel32f18cd222008-09-29 17:21:28 +000015
Aurelien Jarno0c0dcdf2012-10-09 21:53:08 +020016DEF_HELPER_FLAGS_2(minub8, TCG_CALL_NO_RWG_SE, i64, i64, i64)
17DEF_HELPER_FLAGS_2(minsb8, TCG_CALL_NO_RWG_SE, i64, i64, i64)
18DEF_HELPER_FLAGS_2(minuw4, TCG_CALL_NO_RWG_SE, i64, i64, i64)
19DEF_HELPER_FLAGS_2(minsw4, TCG_CALL_NO_RWG_SE, i64, i64, i64)
20DEF_HELPER_FLAGS_2(maxub8, TCG_CALL_NO_RWG_SE, i64, i64, i64)
21DEF_HELPER_FLAGS_2(maxsb8, TCG_CALL_NO_RWG_SE, i64, i64, i64)
22DEF_HELPER_FLAGS_2(maxuw4, TCG_CALL_NO_RWG_SE, i64, i64, i64)
23DEF_HELPER_FLAGS_2(maxsw4, TCG_CALL_NO_RWG_SE, i64, i64, i64)
24DEF_HELPER_FLAGS_2(perr, TCG_CALL_NO_RWG_SE, i64, i64, i64)
25DEF_HELPER_FLAGS_1(pklb, TCG_CALL_NO_RWG_SE, i64, i64)
26DEF_HELPER_FLAGS_1(pkwb, TCG_CALL_NO_RWG_SE, i64, i64)
27DEF_HELPER_FLAGS_1(unpkbl, TCG_CALL_NO_RWG_SE, i64, i64)
28DEF_HELPER_FLAGS_1(unpkbw, TCG_CALL_NO_RWG_SE, i64, i64)
Richard Henderson13e4df92009-12-10 12:04:42 -080029
Aurelien Jarno0c0dcdf2012-10-09 21:53:08 +020030DEF_HELPER_FLAGS_1(load_fpcr, TCG_CALL_NO_RWG_SE, i64, env)
31DEF_HELPER_FLAGS_2(store_fpcr, TCG_CALL_NO_RWG, void, env, i64)
aurel32f18cd222008-09-29 17:21:28 +000032
Aurelien Jarno0c0dcdf2012-10-09 21:53:08 +020033DEF_HELPER_FLAGS_1(f_to_memory, TCG_CALL_NO_RWG_SE, i32, i64)
34DEF_HELPER_FLAGS_1(memory_to_f, TCG_CALL_NO_RWG_SE, i64, i32)
35DEF_HELPER_FLAGS_3(addf, TCG_CALL_NO_RWG, i64, env, i64, i64)
36DEF_HELPER_FLAGS_3(subf, TCG_CALL_NO_RWG, i64, env, i64, i64)
37DEF_HELPER_FLAGS_3(mulf, TCG_CALL_NO_RWG, i64, env, i64, i64)
38DEF_HELPER_FLAGS_3(divf, TCG_CALL_NO_RWG, i64, env, i64, i64)
39DEF_HELPER_FLAGS_2(sqrtf, TCG_CALL_NO_RWG, i64, env, i64)
aurel32f18cd222008-09-29 17:21:28 +000040
Aurelien Jarno0c0dcdf2012-10-09 21:53:08 +020041DEF_HELPER_FLAGS_1(g_to_memory, TCG_CALL_NO_RWG_SE, i64, i64)
42DEF_HELPER_FLAGS_1(memory_to_g, TCG_CALL_NO_RWG_SE, i64, i64)
43DEF_HELPER_FLAGS_3(addg, TCG_CALL_NO_RWG, i64, env, i64, i64)
44DEF_HELPER_FLAGS_3(subg, TCG_CALL_NO_RWG, i64, env, i64, i64)
45DEF_HELPER_FLAGS_3(mulg, TCG_CALL_NO_RWG, i64, env, i64, i64)
46DEF_HELPER_FLAGS_3(divg, TCG_CALL_NO_RWG, i64, env, i64, i64)
47DEF_HELPER_FLAGS_2(sqrtg, TCG_CALL_NO_RWG, i64, env, i64)
aurel32f18cd222008-09-29 17:21:28 +000048
Aurelien Jarno0c0dcdf2012-10-09 21:53:08 +020049DEF_HELPER_FLAGS_1(s_to_memory, TCG_CALL_NO_RWG_SE, i32, i64)
50DEF_HELPER_FLAGS_1(memory_to_s, TCG_CALL_NO_RWG_SE, i64, i32)
51DEF_HELPER_FLAGS_3(adds, TCG_CALL_NO_RWG, i64, env, i64, i64)
52DEF_HELPER_FLAGS_3(subs, TCG_CALL_NO_RWG, i64, env, i64, i64)
53DEF_HELPER_FLAGS_3(muls, TCG_CALL_NO_RWG, i64, env, i64, i64)
54DEF_HELPER_FLAGS_3(divs, TCG_CALL_NO_RWG, i64, env, i64, i64)
55DEF_HELPER_FLAGS_2(sqrts, TCG_CALL_NO_RWG, i64, env, i64)
aurel32f18cd222008-09-29 17:21:28 +000056
Aurelien Jarno0c0dcdf2012-10-09 21:53:08 +020057DEF_HELPER_FLAGS_3(addt, TCG_CALL_NO_RWG, i64, env, i64, i64)
58DEF_HELPER_FLAGS_3(subt, TCG_CALL_NO_RWG, i64, env, i64, i64)
59DEF_HELPER_FLAGS_3(mult, TCG_CALL_NO_RWG, i64, env, i64, i64)
60DEF_HELPER_FLAGS_3(divt, TCG_CALL_NO_RWG, i64, env, i64, i64)
61DEF_HELPER_FLAGS_2(sqrtt, TCG_CALL_NO_RWG, i64, env, i64)
aurel32f18cd222008-09-29 17:21:28 +000062
Aurelien Jarno0c0dcdf2012-10-09 21:53:08 +020063DEF_HELPER_FLAGS_3(cmptun, TCG_CALL_NO_RWG, i64, env, i64, i64)
64DEF_HELPER_FLAGS_3(cmpteq, TCG_CALL_NO_RWG, i64, env, i64, i64)
65DEF_HELPER_FLAGS_3(cmptle, TCG_CALL_NO_RWG, i64, env, i64, i64)
66DEF_HELPER_FLAGS_3(cmptlt, TCG_CALL_NO_RWG, i64, env, i64, i64)
67DEF_HELPER_FLAGS_3(cmpgeq, TCG_CALL_NO_RWG, i64, env, i64, i64)
68DEF_HELPER_FLAGS_3(cmpgle, TCG_CALL_NO_RWG, i64, env, i64, i64)
69DEF_HELPER_FLAGS_3(cmpglt, TCG_CALL_NO_RWG, i64, env, i64, i64)
aurel32f18cd222008-09-29 17:21:28 +000070
Aurelien Jarno0c0dcdf2012-10-09 21:53:08 +020071DEF_HELPER_FLAGS_2(cvtts, TCG_CALL_NO_RWG, i64, env, i64)
72DEF_HELPER_FLAGS_2(cvtst, TCG_CALL_NO_RWG, i64, env, i64)
73DEF_HELPER_FLAGS_2(cvtqs, TCG_CALL_NO_RWG, i64, env, i64)
74DEF_HELPER_FLAGS_2(cvtqt, TCG_CALL_NO_RWG, i64, env, i64)
75DEF_HELPER_FLAGS_2(cvtqf, TCG_CALL_NO_RWG, i64, env, i64)
76DEF_HELPER_FLAGS_2(cvtgf, TCG_CALL_NO_RWG, i64, env, i64)
77DEF_HELPER_FLAGS_2(cvtgq, TCG_CALL_NO_RWG, i64, env, i64)
78DEF_HELPER_FLAGS_2(cvtqg, TCG_CALL_NO_RWG, i64, env, i64)
Richard Hendersonf24518b2010-01-04 14:27:23 -080079
Aurelien Jarno0c0dcdf2012-10-09 21:53:08 +020080DEF_HELPER_FLAGS_2(cvttq, TCG_CALL_NO_RWG, i64, env, i64)
81DEF_HELPER_FLAGS_2(cvttq_c, TCG_CALL_NO_RWG, i64, env, i64)
Richard Hendersonf24518b2010-01-04 14:27:23 -080082
Richard Henderson57a808b2014-07-08 10:42:55 -070083DEF_HELPER_FLAGS_2(cvtql, TCG_CALL_NO_RWG, i64, env, i64)
84
Aurelien Jarno0c0dcdf2012-10-09 21:53:08 +020085DEF_HELPER_FLAGS_2(setroundmode, TCG_CALL_NO_RWG, void, env, i32)
86DEF_HELPER_FLAGS_2(setflushzero, TCG_CALL_NO_RWG, void, env, i32)
Richard Hendersone1e1b252012-10-31 10:30:55 +110087DEF_HELPER_FLAGS_3(fp_exc_raise, TCG_CALL_NO_WG, void, env, i32, i32)
88DEF_HELPER_FLAGS_3(fp_exc_raise_s, TCG_CALL_NO_WG, void, env, i32, i32)
Richard Hendersonf24518b2010-01-04 14:27:23 -080089
Richard Hendersone1e1b252012-10-31 10:30:55 +110090DEF_HELPER_FLAGS_2(ieee_input, TCG_CALL_NO_WG, void, env, i64)
91DEF_HELPER_FLAGS_2(ieee_input_cmp, TCG_CALL_NO_WG, void, env, i64)
Richard Hendersonb99e8062014-07-08 10:11:06 -070092DEF_HELPER_FLAGS_2(ieee_input_s, TCG_CALL_NO_WG, void, env, i64)
aurel32f18cd222008-09-29 17:21:28 +000093
aurel328bb6e982008-09-30 06:45:44 +000094#if !defined (CONFIG_USER_ONLY)
Edgar E. Iglesiasfdfba1a2013-11-15 14:46:38 +010095DEF_HELPER_2(ldl_phys, i64, env, i64)
Edgar E. Iglesias2c174492013-12-17 14:05:40 +100096DEF_HELPER_2(ldq_phys, i64, env, i64)
Richard Hendersonc3082752012-03-24 09:51:13 -070097DEF_HELPER_2(ldl_l_phys, i64, env, i64)
98DEF_HELPER_2(ldq_l_phys, i64, env, i64)
Edgar E. Iglesiasab1da852013-12-17 15:07:29 +100099DEF_HELPER_3(stl_phys, void, env, i64, i64)
Edgar E. Iglesiasf6066042013-11-28 00:11:44 +0100100DEF_HELPER_3(stq_phys, void, env, i64, i64)
Richard Hendersonc3082752012-03-24 09:51:13 -0700101DEF_HELPER_3(stl_c_phys, i64, env, i64, i64)
102DEF_HELPER_3(stq_c_phys, i64, env, i64, i64)
Richard Henderson3b4fefd2011-04-18 20:01:20 -0700103
Aurelien Jarno0c0dcdf2012-10-09 21:53:08 +0200104DEF_HELPER_FLAGS_1(tbia, TCG_CALL_NO_RWG, void, env)
105DEF_HELPER_FLAGS_2(tbis, TCG_CALL_NO_RWG, void, env, i64)
Richard Hendersona9ead832013-07-26 12:00:32 -1000106DEF_HELPER_FLAGS_1(tb_flush, TCG_CALL_NO_RWG, void, env)
Richard Hendersonc781cf92011-04-28 10:40:08 -0700107
Richard Hendersonf5daeec2013-09-14 15:38:30 -0700108DEF_HELPER_1(halt, void, i64)
Richard Hendersonc781cf92011-04-28 10:40:08 -0700109
Richard Henderson19e0cbb2013-07-16 06:45:57 -0700110DEF_HELPER_FLAGS_0(get_vmtime, TCG_CALL_NO_RWG, i64)
111DEF_HELPER_FLAGS_0(get_walltime, TCG_CALL_NO_RWG, i64)
Aurelien Jarno0c0dcdf2012-10-09 21:53:08 +0200112DEF_HELPER_FLAGS_2(set_alarm, TCG_CALL_NO_RWG, void, env, i64)
aurel328bb6e982008-09-30 06:45:44 +0000113#endif