Spaces:
Runtime error
Runtime error
| void exec_opq(long s0, long s1, long iflags) | |
| { | |
| long res, flags; | |
| res = s0; | |
| flags = iflags; | |
| EXECOP1("q", "", res, flags); | |
| } | |
| void exec_opl(long s0, long s1, long iflags) | |
| { | |
| long res, flags; | |
| res = s0; | |
| flags = iflags; | |
| EXECOP1("l", "k", res, flags); | |
| } | |
| void exec_opw(long s0, long s1, long iflags) | |
| { | |
| long res, flags; | |
| res = s0; | |
| flags = iflags; | |
| EXECOP1("w", "w", res, flags); | |
| } | |
| void exec_opb(long s0, long s1, long iflags) | |
| { | |
| long res, flags; | |
| res = s0; | |
| flags = iflags; | |
| EXECOP1("b", "b", res, flags); | |
| } | |
| void exec_opq(long s0, long s1, long iflags) | |
| { | |
| long res, flags; | |
| res = s0; | |
| flags = iflags; | |
| EXECOP2("q", "", res, s1, flags); | |
| } | |
| void exec_opl(long s0, long s1, long iflags) | |
| { | |
| long res, flags; | |
| res = s0; | |
| flags = iflags; | |
| EXECOP2("l", "k", res, s1, flags); | |
| } | |
| void exec_opw(long s0, long s1, long iflags) | |
| { | |
| long res, flags; | |
| res = s0; | |
| flags = iflags; | |
| EXECOP2("w", "w", res, s1, flags); | |
| } | |
| void exec_opb(long s0, long s1, long iflags) | |
| { | |
| long res, flags; | |
| res = s0; | |
| flags = iflags; | |
| EXECOP2("b", "b", res, s1, flags); | |
| } | |
| void exec_op(long s0, long s1) | |
| { | |
| s0 = i2l(s0); | |
| s1 = i2l(s1); | |
| exec_opq(s0, s1, 0); | |
| exec_opl(s0, s1, 0); | |
| exec_opw(s0, s1, 0); | |
| exec_opb(s0, s1, 0); | |
| exec_opq(s0, s1, CC_C); | |
| exec_opl(s0, s1, CC_C); | |
| exec_opw(s0, s1, CC_C); | |
| exec_opb(s0, s1, CC_C); | |
| } | |
| void glue(test_, OP)(void) | |
| { | |
| exec_op(0x12345678, 0x812FADA); | |
| exec_op(0x12341, 0x12341); | |
| exec_op(0x12341, -0x12341); | |
| exec_op(0xffffffff, 0); | |
| exec_op(0xffffffff, -1); | |
| exec_op(0xffffffff, 1); | |
| exec_op(0xffffffff, 2); | |
| exec_op(0x7fffffff, 0); | |
| exec_op(0x7fffffff, 1); | |
| exec_op(0x7fffffff, -1); | |
| exec_op(0x80000000, -1); | |
| exec_op(0x80000000, 1); | |
| exec_op(0x80000000, -2); | |
| exec_op(0x12347fff, 0); | |
| exec_op(0x12347fff, 1); | |
| exec_op(0x12347fff, -1); | |
| exec_op(0x12348000, -1); | |
| exec_op(0x12348000, 1); | |
| exec_op(0x12348000, -2); | |
| exec_op(0x12347f7f, 0); | |
| exec_op(0x12347f7f, 1); | |
| exec_op(0x12347f7f, -1); | |
| exec_op(0x12348080, -1); | |
| exec_op(0x12348080, 1); | |
| exec_op(0x12348080, -2); | |
| exec_op(0xfffe0080, -1); | |
| exec_op(0xfffe0080, 1); | |
| exec_op(0xfffe0080, 0); | |
| exec_op(0xfffe0080, 0xfffe0080); | |
| exec_op(0xfffe0080, 0x80); | |
| exec_op(0xfffe0080, 0x81); | |
| exec_op(0xfffe0080, 0x10000); | |
| exec_op(0xfffe0080, 0x20000); | |
| exec_op(0xfffe0080, 0x1ff7f); | |
| exec_op(0xfffe0080, 0x1ff80); | |
| exec_op(0xfffe0080, 0x1ff81); | |
| exec_op(0xfffe0080, 0x1ffff); | |
| exec_op(0, 0); | |
| } | |
| void *glue(_test_, OP) __init_call = glue(test_, OP); | |