aboutsummaryrefslogtreecommitdiff
path: root/tests/callee_9.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/callee_9.c')
-rw-r--r--tests/callee_9.c41
1 files changed, 24 insertions, 17 deletions
diff --git a/tests/callee_9.c b/tests/callee_9.c
index 38d7595..5ef5938 100644
--- a/tests/callee_9.c
+++ b/tests/callee_9.c
@@ -31,22 +31,29 @@ int main(int argc, char *argv[])
};
struct ejit_func *f = ejit_create_func(EJIT_POINTER, 9, operands);
- EJIT_STXI(f, int8_t, EJIT_GPR(1), EJIT_GPR(0),
- offsetof(struct args, a)); // a
- EJIT_STXI(f, int16_t, EJIT_GPR(2), EJIT_GPR(0),
- offsetof(struct args, b)); // b
- EJIT_STXI(f, int32_t, EJIT_GPR(3), EJIT_GPR(0),
- offsetof(struct args, c)); // c
- EJIT_STXI(f, long, EJIT_GPR(4), EJIT_GPR(0),
- offsetof(struct args, d)); // d
- EJIT_STXI(f, uint16_t, EJIT_GPR(5), EJIT_GPR(0),
- offsetof(struct args, e)); // e
- EJIT_STXI(f, float, EJIT_FPR(0), EJIT_GPR(0),
- offsetof(struct args, f)); // f
- EJIT_STXI(f, double, EJIT_FPR(1), EJIT_GPR(0),
- offsetof(struct args, g)); // g
- EJIT_STXI(f, float, EJIT_FPR(2), EJIT_GPR(0),
- offsetof(struct args, h)); // h
+ EJIT_STXI(f, int8_t,
+ EJIT_GPR(1), EJIT_GPR(0), offsetof(struct args, a)); // a
+
+ EJIT_STXI(f, int16_t,
+ EJIT_GPR(2), EJIT_GPR(0), offsetof(struct args, b)); // b
+
+ EJIT_STXI(f, int32_t,
+ EJIT_GPR(3), EJIT_GPR(0), offsetof(struct args, c)); // c
+
+ EJIT_STXI(f, long,
+ EJIT_GPR(4), EJIT_GPR(0), offsetof(struct args, d)); // d
+
+ EJIT_STXI(f, uint16_t,
+ EJIT_GPR(5), EJIT_GPR(0), offsetof(struct args, e)); // e
+
+ EJIT_STXI(f, float,
+ EJIT_FPR(0), EJIT_GPR(0), offsetof(struct args, f)); // f
+
+ EJIT_STXI(f, double,
+ EJIT_FPR(1), EJIT_GPR(0), offsetof(struct args, g)); // g
+
+ EJIT_STXI(f, float,
+ EJIT_FPR(2), EJIT_GPR(0), offsetof(struct args, h)); // h
ejit_retr(f, EJIT_GPR(0));
@@ -66,7 +73,7 @@ int main(int argc, char *argv[])
EJIT_ARG(in.g, double),
EJIT_ARG(in.h, float)
};
- assert((void *)ejit_run_func(f, 8, args) == &out);
+ assert((void *)ejit_run_func_i(f, 9, args) == &out);
assert(in.a == out.a);
assert(in.b == out.b);
assert(in.c == out.c);