From ae9e103995c1d809be7b8717905593e7dbbf9d17 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 13 Jul 2024 20:56:26 +0300 Subject: bytecode tests pass --- tests/ldxr_i8.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'tests/ldxr_i8.c') diff --git a/tests/ldxr_i8.c b/tests/ldxr_i8.c index c5de17e..6fe910d 100644 --- a/tests/ldxr_i8.c +++ b/tests/ldxr_i8.c @@ -17,9 +17,17 @@ int main() ejit_select_compile_func(f, 2, 0, false, do_jit); - assert(erf2(f, EJIT_ARG(data, void *), EJIT_ARG(0, unsigned)) == -1); - assert(erf2(f, EJIT_ARG(data, void *), EJIT_ARG(4, unsigned)) == 0); - assert(erf2(f, EJIT_ARG(data, void *), EJIT_ARG(8, unsigned)) == 0x42); + assert(erf2(f, EJIT_ARG(data, void *), + EJIT_ARG(sizeof(int8_t) * 0, unsigned) + ) == -1); + + assert(erf2(f, EJIT_ARG(data, void *), + EJIT_ARG(sizeof(int8_t) * 1, unsigned) + ) == 0); + + assert(erf2(f, EJIT_ARG(data, void *), + EJIT_ARG(sizeof(int8_t) * 2, unsigned) + ) == 0x42); ejit_destroy_func(f); } -- cgit v1.2.3