Skip to content

Commit 01cccfc

Browse files
committed
Merge pull request #1886 from pguyot/w41/fix-jit-test-to-pass-avmint64-tuple
Update JIT tests to use `{avm_int64_t, _}` for 64 bits integer These changes are made under both the "Apache 2.0" and the "GNU Lesser General Public License 2.1 or later" license terms (dual license). SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
2 parents 14bf0d5 + 6fde7db commit 01cccfc

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)