Skip to content

Commit 6fde7db

Browse files
committed
Update JIT tests to use {avm_int64_t, _} for 64 bits integer
Signed-off-by: Paul Guyot <[email protected]>
1 parent 14bf0d5 commit 6fde7db

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/libs/jit/jit_aarch64_tests.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ call_only_or_schedule_next_and_label_relocation_test() ->
819819
call_bif_with_large_literal_integer_test() ->
820820
State0 = ?BACKEND:new(?JIT_VARIANT_PIC, jit_stream_binary, jit_stream_binary:new(0)),
821821
{State1, FuncPtr} = ?BACKEND:call_primitive(State0, 8, [jit_state, 2]),
822-
{State2, ArgReg} = ?BACKEND:call_primitive(State1, 15, [ctx, 9208452466117618637]),
822+
{State2, ArgReg} = ?BACKEND:call_primitive(State1, 15, [ctx, {avm_int64_t, 9208452466117618637}]),
823823
{State3, ResultReg} = ?BACKEND:call_func_ptr(State2, {free, FuncPtr}, [
824824
ctx, 0, 1, {free, {x_reg, 0}}, {free, ArgReg}
825825
]),

tests/libs/jit/jit_x86_64_tests.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ call_only_or_schedule_next_and_label_relocation_test() ->
824824
call_bif_with_large_literal_integer_test() ->
825825
State0 = ?BACKEND:new(?JIT_VARIANT_PIC, jit_stream_binary, jit_stream_binary:new(0)),
826826
{State1, FuncPtr} = ?BACKEND:call_primitive(State0, 8, [jit_state, 2]),
827-
{State2, ArgReg} = ?BACKEND:call_primitive(State1, 15, [ctx, 9208452466117618637]),
827+
{State2, ArgReg} = ?BACKEND:call_primitive(State1, 15, [ctx, {avm_int64_t, 9208452466117618637}]),
828828
{State3, ResultReg} = ?BACKEND:call_func_ptr(State2, {free, FuncPtr}, [
829829
ctx, 0, 1, {free, {x_reg, 0}}, {free, ArgReg}
830830
]),

0 commit comments

Comments
 (0)