diff options
author | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-03-14 21:08:01 +0200 |
---|---|---|
committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-03-14 21:08:01 +0200 |
commit | f5c729ea59d227a507f83bd94d07f4366b46d72b (patch) | |
tree | 70d1f242100cea09acd38a71ff8c821836117cfd /tests/lshi.c | |
parent | 57f6b41047e95374701ee276248f0f8615168450 (diff) | |
download | ejit-f5c729ea59d227a507f83bd94d07f4366b46d72b.tar.gz ejit-f5c729ea59d227a507f83bd94d07f4366b46d72b.zip |
start supporting 32bit arches
Diffstat (limited to 'tests/lshi.c')
-rw-r--r-- | tests/lshi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lshi.c b/tests/lshi.c index 9685f46..d9e5192 100644 --- a/tests/lshi.c +++ b/tests/lshi.c @@ -12,12 +12,12 @@ int main(int argc, char *argv[]) struct ejit_func *f = ejit_create_func(EJIT_TYPE(long), 1, operands); - ejit_lshi(f, EJIT_GPR(0), EJIT_GPR(0), 31); + ejit_lshi(f, EJIT_GPR(0), EJIT_GPR(0), 4); ejit_retr(f, EJIT_GPR(0)); ejit_select_compile_func(f, 1, 0, false, do_jit); - assert(erf1(f, EJIT_ARG(-0x7f, long)) == (int64_t)0xffffffc080000000); + assert(erfi1(f, EJIT_ARG(-0x7f, long)) == (-0x7f) * (1 << 4)); ejit_destroy_func(f); } |