diff options
author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-07-13 20:56:26 +0300 |
---|---|---|
committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-07-13 20:56:26 +0300 |
commit | ae9e103995c1d809be7b8717905593e7dbbf9d17 (patch) | |
tree | 0ceaf6ee66e1d67bb8d0b9dd6f37b5687e4c2f09 /tests/ldxr_u8.c | |
parent | e618924df98d4ee5037db86c768a8c8014e49c4c (diff) | |
download | ejit-ae9e103995c1d809be7b8717905593e7dbbf9d17.tar.gz ejit-ae9e103995c1d809be7b8717905593e7dbbf9d17.zip |
bytecode tests pass
Diffstat (limited to 'tests/ldxr_u8.c')
-rw-r--r-- | tests/ldxr_u8.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/tests/ldxr_u8.c b/tests/ldxr_u8.c index d1f5023..83a0d36 100644 --- a/tests/ldxr_u8.c +++ b/tests/ldxr_u8.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)) == 0xff); - 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) + ) == 0xff); + + 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); } |