Message ID | d6494504117566addf6af61a34ed5b72d10d49e5.1270680209.git.rth@twiddle.net |
---|---|
State | New |
Headers | show |
On Fri, Mar 12, 2010 at 10:31:49AM -0800, Richard Henderson wrote: > Almost all alpha helpers are at least TCG_CALL_CONST > and a fair few are also TCG_CALL_PURE. Thanks, applied. > Signed-off-by: Richard Henderson <rth@twiddle.net> > --- > target-alpha/helper.h | 184 ++++++++++++++++++++++++------------------------ > 1 files changed, 92 insertions(+), 92 deletions(-) > > diff --git a/target-alpha/helper.h b/target-alpha/helper.h > index 79cf375..a508077 100644 > --- a/target-alpha/helper.h > +++ b/target-alpha/helper.h > @@ -1,9 +1,9 @@ > #include "def-helper.h" > > DEF_HELPER_2(excp, void, int, int) > -DEF_HELPER_0(load_pcc, i64) > -DEF_HELPER_0(rc, i64) > -DEF_HELPER_0(rs, i64) > +DEF_HELPER_FLAGS_0(load_pcc, TCG_CALL_CONST | TCG_CALL_PURE, i64) > +DEF_HELPER_FLAGS_0(rc, TCG_CALL_CONST, i64) > +DEF_HELPER_FLAGS_0(rs, TCG_CALL_CONST, i64) > > DEF_HELPER_2(addqv, i64, i64, i64) > DEF_HELPER_2(addlv, i64, i64, i64) > @@ -11,98 +11,98 @@ DEF_HELPER_2(subqv, i64, i64, i64) > DEF_HELPER_2(sublv, i64, i64, i64) > DEF_HELPER_2(mullv, i64, i64, i64) > DEF_HELPER_2(mulqv, i64, i64, i64) > -DEF_HELPER_2(umulh, i64, i64, i64) > - > -DEF_HELPER_1(ctpop, i64, i64) > -DEF_HELPER_1(ctlz, i64, i64) > -DEF_HELPER_1(cttz, i64, i64) > - > -DEF_HELPER_2(zap, i64, i64, i64) > -DEF_HELPER_2(zapnot, i64, i64, i64) > - > -DEF_HELPER_2(cmpbge, i64, i64, i64) > - > -DEF_HELPER_2(minub8, i64, i64, i64) > -DEF_HELPER_2(minsb8, i64, i64, i64) > -DEF_HELPER_2(minuw4, i64, i64, i64) > -DEF_HELPER_2(minsw4, i64, i64, i64) > -DEF_HELPER_2(maxub8, i64, i64, i64) > -DEF_HELPER_2(maxsb8, i64, i64, i64) > -DEF_HELPER_2(maxuw4, i64, i64, i64) > -DEF_HELPER_2(maxsw4, i64, i64, i64) > -DEF_HELPER_2(perr, i64, i64, i64) > -DEF_HELPER_1(pklb, i64, i64) > -DEF_HELPER_1(pkwb, i64, i64) > -DEF_HELPER_1(unpkbl, i64, i64) > -DEF_HELPER_1(unpkbw, i64, i64) > - > -DEF_HELPER_0(load_fpcr, i64) > -DEF_HELPER_1(store_fpcr, void, i64) > - > -DEF_HELPER_1(f_to_memory, i32, i64) > -DEF_HELPER_1(memory_to_f, i64, i32) > -DEF_HELPER_2(addf, i64, i64, i64) > -DEF_HELPER_2(subf, i64, i64, i64) > -DEF_HELPER_2(mulf, i64, i64, i64) > -DEF_HELPER_2(divf, i64, i64, i64) > -DEF_HELPER_1(sqrtf, i64, i64) > - > -DEF_HELPER_1(g_to_memory, i64, i64) > -DEF_HELPER_1(memory_to_g, i64, i64) > -DEF_HELPER_2(addg, i64, i64, i64) > -DEF_HELPER_2(subg, i64, i64, i64) > -DEF_HELPER_2(mulg, i64, i64, i64) > -DEF_HELPER_2(divg, i64, i64, i64) > -DEF_HELPER_1(sqrtg, i64, i64) > - > -DEF_HELPER_1(s_to_memory, i32, i64) > -DEF_HELPER_1(memory_to_s, i64, i32) > -DEF_HELPER_2(adds, i64, i64, i64) > -DEF_HELPER_2(subs, i64, i64, i64) > -DEF_HELPER_2(muls, i64, i64, i64) > -DEF_HELPER_2(divs, i64, i64, i64) > -DEF_HELPER_1(sqrts, i64, i64) > - > -DEF_HELPER_2(addt, i64, i64, i64) > -DEF_HELPER_2(subt, i64, i64, i64) > -DEF_HELPER_2(mult, i64, i64, i64) > -DEF_HELPER_2(divt, i64, i64, i64) > -DEF_HELPER_1(sqrtt, i64, i64) > - > -DEF_HELPER_2(cmptun, i64, i64, i64) > -DEF_HELPER_2(cmpteq, i64, i64, i64) > -DEF_HELPER_2(cmptle, i64, i64, i64) > -DEF_HELPER_2(cmptlt, i64, i64, i64) > -DEF_HELPER_2(cmpgeq, i64, i64, i64) > -DEF_HELPER_2(cmpgle, i64, i64, i64) > -DEF_HELPER_2(cmpglt, i64, i64, i64) > - > -DEF_HELPER_2(cpys, i64, i64, i64) > -DEF_HELPER_2(cpysn, i64, i64, i64) > -DEF_HELPER_2(cpyse, i64, i64, i64) > - > -DEF_HELPER_1(cvtts, i64, i64) > -DEF_HELPER_1(cvtst, i64, i64) > -DEF_HELPER_1(cvtqs, i64, i64) > -DEF_HELPER_1(cvtqt, i64, i64) > -DEF_HELPER_1(cvtqf, i64, i64) > -DEF_HELPER_1(cvtgf, i64, i64) > -DEF_HELPER_1(cvtgq, i64, i64) > -DEF_HELPER_1(cvtqg, i64, i64) > -DEF_HELPER_1(cvtlq, i64, i64) > - > -DEF_HELPER_1(cvttq, i64, i64) > -DEF_HELPER_1(cvttq_c, i64, i64) > -DEF_HELPER_1(cvttq_svic, i64, i64) > - > -DEF_HELPER_1(cvtql, i64, i64) > +DEF_HELPER_FLAGS_2(umulh, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) > + > +DEF_HELPER_FLAGS_1(ctpop, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64) > +DEF_HELPER_FLAGS_1(ctlz, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64) > +DEF_HELPER_FLAGS_1(cttz, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64) > + > +DEF_HELPER_FLAGS_2(zap, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) > +DEF_HELPER_FLAGS_2(zapnot, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) > + > +DEF_HELPER_FLAGS_2(cmpbge, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) > + > +DEF_HELPER_FLAGS_2(minub8, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) > +DEF_HELPER_FLAGS_2(minsb8, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) > +DEF_HELPER_FLAGS_2(minuw4, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) > +DEF_HELPER_FLAGS_2(minsw4, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) > +DEF_HELPER_FLAGS_2(maxub8, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) > +DEF_HELPER_FLAGS_2(maxsb8, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) > +DEF_HELPER_FLAGS_2(maxuw4, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) > +DEF_HELPER_FLAGS_2(maxsw4, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) > +DEF_HELPER_FLAGS_2(perr, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) > +DEF_HELPER_FLAGS_1(pklb, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64) > +DEF_HELPER_FLAGS_1(pkwb, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64) > +DEF_HELPER_FLAGS_1(unpkbl, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64) > +DEF_HELPER_FLAGS_1(unpkbw, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64) > + > +DEF_HELPER_FLAGS_0(load_fpcr, TCG_CALL_CONST | TCG_CALL_PURE, i64) > +DEF_HELPER_FLAGS_1(store_fpcr, TCG_CALL_CONST, void, i64) > + > +DEF_HELPER_FLAGS_1(f_to_memory, TCG_CALL_CONST | TCG_CALL_PURE, i32, i64) > +DEF_HELPER_FLAGS_1(memory_to_f, TCG_CALL_CONST | TCG_CALL_PURE, i64, i32) > +DEF_HELPER_FLAGS_2(addf, TCG_CALL_CONST, i64, i64, i64) > +DEF_HELPER_FLAGS_2(subf, TCG_CALL_CONST, i64, i64, i64) > +DEF_HELPER_FLAGS_2(mulf, TCG_CALL_CONST, i64, i64, i64) > +DEF_HELPER_FLAGS_2(divf, TCG_CALL_CONST, i64, i64, i64) > +DEF_HELPER_FLAGS_1(sqrtf, TCG_CALL_CONST, i64, i64) > + > +DEF_HELPER_FLAGS_1(g_to_memory, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64) > +DEF_HELPER_FLAGS_1(memory_to_g, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64) > +DEF_HELPER_FLAGS_2(addg, TCG_CALL_CONST, i64, i64, i64) > +DEF_HELPER_FLAGS_2(subg, TCG_CALL_CONST, i64, i64, i64) > +DEF_HELPER_FLAGS_2(mulg, TCG_CALL_CONST, i64, i64, i64) > +DEF_HELPER_FLAGS_2(divg, TCG_CALL_CONST, i64, i64, i64) > +DEF_HELPER_FLAGS_1(sqrtg, TCG_CALL_CONST, i64, i64) > + > +DEF_HELPER_FLAGS_1(s_to_memory, TCG_CALL_CONST | TCG_CALL_PURE, i32, i64) > +DEF_HELPER_FLAGS_1(memory_to_s, TCG_CALL_CONST | TCG_CALL_PURE, i64, i32) > +DEF_HELPER_FLAGS_2(adds, TCG_CALL_CONST, i64, i64, i64) > +DEF_HELPER_FLAGS_2(subs, TCG_CALL_CONST, i64, i64, i64) > +DEF_HELPER_FLAGS_2(muls, TCG_CALL_CONST, i64, i64, i64) > +DEF_HELPER_FLAGS_2(divs, TCG_CALL_CONST, i64, i64, i64) > +DEF_HELPER_FLAGS_1(sqrts, TCG_CALL_CONST, i64, i64) > + > +DEF_HELPER_FLAGS_2(addt, TCG_CALL_CONST, i64, i64, i64) > +DEF_HELPER_FLAGS_2(subt, TCG_CALL_CONST, i64, i64, i64) > +DEF_HELPER_FLAGS_2(mult, TCG_CALL_CONST, i64, i64, i64) > +DEF_HELPER_FLAGS_2(divt, TCG_CALL_CONST, i64, i64, i64) > +DEF_HELPER_FLAGS_1(sqrtt, TCG_CALL_CONST, i64, i64) > + > +DEF_HELPER_FLAGS_2(cmptun, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) > +DEF_HELPER_FLAGS_2(cmpteq, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) > +DEF_HELPER_FLAGS_2(cmptle, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) > +DEF_HELPER_FLAGS_2(cmptlt, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) > +DEF_HELPER_FLAGS_2(cmpgeq, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) > +DEF_HELPER_FLAGS_2(cmpgle, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) > +DEF_HELPER_FLAGS_2(cmpglt, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) > + > +DEF_HELPER_FLAGS_2(cpys, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) > +DEF_HELPER_FLAGS_2(cpysn, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) > +DEF_HELPER_FLAGS_2(cpyse, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) > + > +DEF_HELPER_FLAGS_1(cvtts, TCG_CALL_CONST, i64, i64) > +DEF_HELPER_FLAGS_1(cvtst, TCG_CALL_CONST, i64, i64) > +DEF_HELPER_FLAGS_1(cvtqs, TCG_CALL_CONST, i64, i64) > +DEF_HELPER_FLAGS_1(cvtqt, TCG_CALL_CONST, i64, i64) > +DEF_HELPER_FLAGS_1(cvtqf, TCG_CALL_CONST, i64, i64) > +DEF_HELPER_FLAGS_1(cvtgf, TCG_CALL_CONST, i64, i64) > +DEF_HELPER_FLAGS_1(cvtgq, TCG_CALL_CONST, i64, i64) > +DEF_HELPER_FLAGS_1(cvtqg, TCG_CALL_CONST, i64, i64) > +DEF_HELPER_FLAGS_1(cvtlq, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64) > + > +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_1(setroundmode, void, i32) > -DEF_HELPER_1(setflushzero, void, i32) > -DEF_HELPER_0(fp_exc_clear, void) > -DEF_HELPER_0(fp_exc_get, i32) > +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) > +DEF_HELPER_FLAGS_0(fp_exc_get, TCG_CALL_CONST | TCG_CALL_PURE, i32) > DEF_HELPER_2(fp_exc_raise, void, i32, i32) > DEF_HELPER_2(fp_exc_raise_s, void, i32, i32) > > -- > 1.6.6.1 > > > >
diff --git a/target-alpha/helper.h b/target-alpha/helper.h index 79cf375..a508077 100644 --- a/target-alpha/helper.h +++ b/target-alpha/helper.h @@ -1,9 +1,9 @@ #include "def-helper.h" DEF_HELPER_2(excp, void, int, int) -DEF_HELPER_0(load_pcc, i64) -DEF_HELPER_0(rc, i64) -DEF_HELPER_0(rs, i64) +DEF_HELPER_FLAGS_0(load_pcc, TCG_CALL_CONST | TCG_CALL_PURE, i64) +DEF_HELPER_FLAGS_0(rc, TCG_CALL_CONST, i64) +DEF_HELPER_FLAGS_0(rs, TCG_CALL_CONST, i64) DEF_HELPER_2(addqv, i64, i64, i64) DEF_HELPER_2(addlv, i64, i64, i64) @@ -11,98 +11,98 @@ DEF_HELPER_2(subqv, i64, i64, i64) DEF_HELPER_2(sublv, i64, i64, i64) DEF_HELPER_2(mullv, i64, i64, i64) DEF_HELPER_2(mulqv, i64, i64, i64) -DEF_HELPER_2(umulh, i64, i64, i64) - -DEF_HELPER_1(ctpop, i64, i64) -DEF_HELPER_1(ctlz, i64, i64) -DEF_HELPER_1(cttz, i64, i64) - -DEF_HELPER_2(zap, i64, i64, i64) -DEF_HELPER_2(zapnot, i64, i64, i64) - -DEF_HELPER_2(cmpbge, i64, i64, i64) - -DEF_HELPER_2(minub8, i64, i64, i64) -DEF_HELPER_2(minsb8, i64, i64, i64) -DEF_HELPER_2(minuw4, i64, i64, i64) -DEF_HELPER_2(minsw4, i64, i64, i64) -DEF_HELPER_2(maxub8, i64, i64, i64) -DEF_HELPER_2(maxsb8, i64, i64, i64) -DEF_HELPER_2(maxuw4, i64, i64, i64) -DEF_HELPER_2(maxsw4, i64, i64, i64) -DEF_HELPER_2(perr, i64, i64, i64) -DEF_HELPER_1(pklb, i64, i64) -DEF_HELPER_1(pkwb, i64, i64) -DEF_HELPER_1(unpkbl, i64, i64) -DEF_HELPER_1(unpkbw, i64, i64) - -DEF_HELPER_0(load_fpcr, i64) -DEF_HELPER_1(store_fpcr, void, i64) - -DEF_HELPER_1(f_to_memory, i32, i64) -DEF_HELPER_1(memory_to_f, i64, i32) -DEF_HELPER_2(addf, i64, i64, i64) -DEF_HELPER_2(subf, i64, i64, i64) -DEF_HELPER_2(mulf, i64, i64, i64) -DEF_HELPER_2(divf, i64, i64, i64) -DEF_HELPER_1(sqrtf, i64, i64) - -DEF_HELPER_1(g_to_memory, i64, i64) -DEF_HELPER_1(memory_to_g, i64, i64) -DEF_HELPER_2(addg, i64, i64, i64) -DEF_HELPER_2(subg, i64, i64, i64) -DEF_HELPER_2(mulg, i64, i64, i64) -DEF_HELPER_2(divg, i64, i64, i64) -DEF_HELPER_1(sqrtg, i64, i64) - -DEF_HELPER_1(s_to_memory, i32, i64) -DEF_HELPER_1(memory_to_s, i64, i32) -DEF_HELPER_2(adds, i64, i64, i64) -DEF_HELPER_2(subs, i64, i64, i64) -DEF_HELPER_2(muls, i64, i64, i64) -DEF_HELPER_2(divs, i64, i64, i64) -DEF_HELPER_1(sqrts, i64, i64) - -DEF_HELPER_2(addt, i64, i64, i64) -DEF_HELPER_2(subt, i64, i64, i64) -DEF_HELPER_2(mult, i64, i64, i64) -DEF_HELPER_2(divt, i64, i64, i64) -DEF_HELPER_1(sqrtt, i64, i64) - -DEF_HELPER_2(cmptun, i64, i64, i64) -DEF_HELPER_2(cmpteq, i64, i64, i64) -DEF_HELPER_2(cmptle, i64, i64, i64) -DEF_HELPER_2(cmptlt, i64, i64, i64) -DEF_HELPER_2(cmpgeq, i64, i64, i64) -DEF_HELPER_2(cmpgle, i64, i64, i64) -DEF_HELPER_2(cmpglt, i64, i64, i64) - -DEF_HELPER_2(cpys, i64, i64, i64) -DEF_HELPER_2(cpysn, i64, i64, i64) -DEF_HELPER_2(cpyse, i64, i64, i64) - -DEF_HELPER_1(cvtts, i64, i64) -DEF_HELPER_1(cvtst, i64, i64) -DEF_HELPER_1(cvtqs, i64, i64) -DEF_HELPER_1(cvtqt, i64, i64) -DEF_HELPER_1(cvtqf, i64, i64) -DEF_HELPER_1(cvtgf, i64, i64) -DEF_HELPER_1(cvtgq, i64, i64) -DEF_HELPER_1(cvtqg, i64, i64) -DEF_HELPER_1(cvtlq, i64, i64) - -DEF_HELPER_1(cvttq, i64, i64) -DEF_HELPER_1(cvttq_c, i64, i64) -DEF_HELPER_1(cvttq_svic, i64, i64) - -DEF_HELPER_1(cvtql, i64, i64) +DEF_HELPER_FLAGS_2(umulh, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) + +DEF_HELPER_FLAGS_1(ctpop, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64) +DEF_HELPER_FLAGS_1(ctlz, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64) +DEF_HELPER_FLAGS_1(cttz, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64) + +DEF_HELPER_FLAGS_2(zap, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) +DEF_HELPER_FLAGS_2(zapnot, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) + +DEF_HELPER_FLAGS_2(cmpbge, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) + +DEF_HELPER_FLAGS_2(minub8, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) +DEF_HELPER_FLAGS_2(minsb8, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) +DEF_HELPER_FLAGS_2(minuw4, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) +DEF_HELPER_FLAGS_2(minsw4, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) +DEF_HELPER_FLAGS_2(maxub8, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) +DEF_HELPER_FLAGS_2(maxsb8, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) +DEF_HELPER_FLAGS_2(maxuw4, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) +DEF_HELPER_FLAGS_2(maxsw4, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) +DEF_HELPER_FLAGS_2(perr, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) +DEF_HELPER_FLAGS_1(pklb, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64) +DEF_HELPER_FLAGS_1(pkwb, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64) +DEF_HELPER_FLAGS_1(unpkbl, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64) +DEF_HELPER_FLAGS_1(unpkbw, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64) + +DEF_HELPER_FLAGS_0(load_fpcr, TCG_CALL_CONST | TCG_CALL_PURE, i64) +DEF_HELPER_FLAGS_1(store_fpcr, TCG_CALL_CONST, void, i64) + +DEF_HELPER_FLAGS_1(f_to_memory, TCG_CALL_CONST | TCG_CALL_PURE, i32, i64) +DEF_HELPER_FLAGS_1(memory_to_f, TCG_CALL_CONST | TCG_CALL_PURE, i64, i32) +DEF_HELPER_FLAGS_2(addf, TCG_CALL_CONST, i64, i64, i64) +DEF_HELPER_FLAGS_2(subf, TCG_CALL_CONST, i64, i64, i64) +DEF_HELPER_FLAGS_2(mulf, TCG_CALL_CONST, i64, i64, i64) +DEF_HELPER_FLAGS_2(divf, TCG_CALL_CONST, i64, i64, i64) +DEF_HELPER_FLAGS_1(sqrtf, TCG_CALL_CONST, i64, i64) + +DEF_HELPER_FLAGS_1(g_to_memory, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64) +DEF_HELPER_FLAGS_1(memory_to_g, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64) +DEF_HELPER_FLAGS_2(addg, TCG_CALL_CONST, i64, i64, i64) +DEF_HELPER_FLAGS_2(subg, TCG_CALL_CONST, i64, i64, i64) +DEF_HELPER_FLAGS_2(mulg, TCG_CALL_CONST, i64, i64, i64) +DEF_HELPER_FLAGS_2(divg, TCG_CALL_CONST, i64, i64, i64) +DEF_HELPER_FLAGS_1(sqrtg, TCG_CALL_CONST, i64, i64) + +DEF_HELPER_FLAGS_1(s_to_memory, TCG_CALL_CONST | TCG_CALL_PURE, i32, i64) +DEF_HELPER_FLAGS_1(memory_to_s, TCG_CALL_CONST | TCG_CALL_PURE, i64, i32) +DEF_HELPER_FLAGS_2(adds, TCG_CALL_CONST, i64, i64, i64) +DEF_HELPER_FLAGS_2(subs, TCG_CALL_CONST, i64, i64, i64) +DEF_HELPER_FLAGS_2(muls, TCG_CALL_CONST, i64, i64, i64) +DEF_HELPER_FLAGS_2(divs, TCG_CALL_CONST, i64, i64, i64) +DEF_HELPER_FLAGS_1(sqrts, TCG_CALL_CONST, i64, i64) + +DEF_HELPER_FLAGS_2(addt, TCG_CALL_CONST, i64, i64, i64) +DEF_HELPER_FLAGS_2(subt, TCG_CALL_CONST, i64, i64, i64) +DEF_HELPER_FLAGS_2(mult, TCG_CALL_CONST, i64, i64, i64) +DEF_HELPER_FLAGS_2(divt, TCG_CALL_CONST, i64, i64, i64) +DEF_HELPER_FLAGS_1(sqrtt, TCG_CALL_CONST, i64, i64) + +DEF_HELPER_FLAGS_2(cmptun, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) +DEF_HELPER_FLAGS_2(cmpteq, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) +DEF_HELPER_FLAGS_2(cmptle, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) +DEF_HELPER_FLAGS_2(cmptlt, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) +DEF_HELPER_FLAGS_2(cmpgeq, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) +DEF_HELPER_FLAGS_2(cmpgle, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) +DEF_HELPER_FLAGS_2(cmpglt, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) + +DEF_HELPER_FLAGS_2(cpys, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) +DEF_HELPER_FLAGS_2(cpysn, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) +DEF_HELPER_FLAGS_2(cpyse, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64, i64) + +DEF_HELPER_FLAGS_1(cvtts, TCG_CALL_CONST, i64, i64) +DEF_HELPER_FLAGS_1(cvtst, TCG_CALL_CONST, i64, i64) +DEF_HELPER_FLAGS_1(cvtqs, TCG_CALL_CONST, i64, i64) +DEF_HELPER_FLAGS_1(cvtqt, TCG_CALL_CONST, i64, i64) +DEF_HELPER_FLAGS_1(cvtqf, TCG_CALL_CONST, i64, i64) +DEF_HELPER_FLAGS_1(cvtgf, TCG_CALL_CONST, i64, i64) +DEF_HELPER_FLAGS_1(cvtgq, TCG_CALL_CONST, i64, i64) +DEF_HELPER_FLAGS_1(cvtqg, TCG_CALL_CONST, i64, i64) +DEF_HELPER_FLAGS_1(cvtlq, TCG_CALL_CONST | TCG_CALL_PURE, i64, i64) + +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_1(setroundmode, void, i32) -DEF_HELPER_1(setflushzero, void, i32) -DEF_HELPER_0(fp_exc_clear, void) -DEF_HELPER_0(fp_exc_get, i32) +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) +DEF_HELPER_FLAGS_0(fp_exc_get, TCG_CALL_CONST | TCG_CALL_PURE, i32) DEF_HELPER_2(fp_exc_raise, void, i32, i32) DEF_HELPER_2(fp_exc_raise_s, void, i32, i32)
Almost all alpha helpers are at least TCG_CALL_CONST and a fair few are also TCG_CALL_PURE. Signed-off-by: Richard Henderson <rth@twiddle.net> --- target-alpha/helper.h | 184 ++++++++++++++++++++++++------------------------ 1 files changed, 92 insertions(+), 92 deletions(-)