@@ -524,7 +524,7 @@ void InterpreterMacroAssembler::dispatch_base(TosState state,
524
524
bnez (t1, safepoint);
525
525
}
526
526
if (table == Interpreter::dispatch_table (state)) {
527
- li (t1, Interpreter::distance_from_dispatch_table (state));
527
+ mv (t1, Interpreter::distance_from_dispatch_table (state));
528
528
add (t1, Rs, t1);
529
529
shadd (t1, t1, xdispatch, t1, 3 );
530
530
} else {
@@ -828,7 +828,7 @@ void InterpreterMacroAssembler::lock_object(Register lock_reg)
828
828
// least significant 3 bits clear.
829
829
// NOTE: the oopMark is in swap_reg x10 as the result of cmpxchg
830
830
sub (swap_reg, swap_reg, sp);
831
- li (t0, (int64_t )(7 - os::vm_page_size ()));
831
+ mv (t0, (int64_t )(7 - os::vm_page_size ()));
832
832
andr (swap_reg, swap_reg, t0);
833
833
834
834
// Save the test result, for recursive case, the result is zero
@@ -1666,7 +1666,7 @@ void InterpreterMacroAssembler::profile_obj_type(Register obj, const Address& md
1666
1666
1667
1667
ld (t0, mdo_addr);
1668
1668
beqz (t0, none);
1669
- li (tmp, (u1)TypeEntries::null_seen);
1669
+ mv (tmp, (u1)TypeEntries::null_seen);
1670
1670
beq (t0, tmp, none);
1671
1671
// There is a chance that the checks above (re-reading profiling
1672
1672
// data from memory) fail if another thread has just set the
@@ -1701,10 +1701,10 @@ void InterpreterMacroAssembler::profile_arguments_type(Register mdp, Register ca
1701
1701
1702
1702
lbu (t0, Address (mdp, in_bytes (DataLayout::tag_offset ()) - off_to_start));
1703
1703
if (is_virtual) {
1704
- li (tmp, (u1)DataLayout::virtual_call_type_data_tag);
1704
+ mv (tmp, (u1)DataLayout::virtual_call_type_data_tag);
1705
1705
bne (t0, tmp, profile_continue);
1706
1706
} else {
1707
- li (tmp, (u1)DataLayout::call_type_data_tag);
1707
+ mv (tmp, (u1)DataLayout::call_type_data_tag);
1708
1708
bne (t0, tmp, profile_continue);
1709
1709
}
1710
1710
@@ -1734,15 +1734,15 @@ void InterpreterMacroAssembler::profile_arguments_type(Register mdp, Register ca
1734
1734
mv (index , zr); // index < TypeProfileArgsLimit
1735
1735
bind (loop);
1736
1736
bgtz (index , profileReturnType);
1737
- li (t0, (int )MethodData::profile_return ());
1737
+ mv (t0, (int )MethodData::profile_return ());
1738
1738
beqz (t0, profileArgument); // (index > 0 || MethodData::profile_return()) == false
1739
1739
bind (profileReturnType);
1740
1740
// If return value type is profiled we may have no argument to profile
1741
1741
ld (tmp, Address (mdp, in_bytes (TypeEntriesAtCall::cell_count_offset ())));
1742
1742
mv (t1, - TypeStackSlotEntries::per_arg_count ());
1743
1743
mul (t1, index , t1);
1744
1744
add (tmp, tmp, t1);
1745
- li (t1, TypeStackSlotEntries::per_arg_count ());
1745
+ mv (t1, TypeStackSlotEntries::per_arg_count ());
1746
1746
add (t0, mdp, off_to_args);
1747
1747
blt (tmp, t1, done);
1748
1748
@@ -1753,8 +1753,8 @@ void InterpreterMacroAssembler::profile_arguments_type(Register mdp, Register ca
1753
1753
// stack offset o (zero based) from the start of the argument
1754
1754
// list, for n arguments translates into offset n - o - 1 from
1755
1755
// the end of the argument list
1756
- li (t0, stack_slot_offset0);
1757
- li (t1, slot_step);
1756
+ mv (t0, stack_slot_offset0);
1757
+ mv (t1, slot_step);
1758
1758
mul (t1, index , t1);
1759
1759
add (t0, t0, t1);
1760
1760
add (t0, mdp, t0);
@@ -1764,8 +1764,8 @@ void InterpreterMacroAssembler::profile_arguments_type(Register mdp, Register ca
1764
1764
Address arg_addr = argument_address (tmp);
1765
1765
ld (tmp, arg_addr);
1766
1766
1767
- li (t0, argument_type_offset0);
1768
- li (t1, type_step);
1767
+ mv (t0, argument_type_offset0);
1768
+ mv (t1, type_step);
1769
1769
mul (t1, index , t1);
1770
1770
add (t0, t0, t1);
1771
1771
add (mdo_addr, mdp, t0);
@@ -1777,7 +1777,7 @@ void InterpreterMacroAssembler::profile_arguments_type(Register mdp, Register ca
1777
1777
1778
1778
// increment index by 1
1779
1779
addi (index , index , 1 );
1780
- li (t1, TypeProfileArgsLimit);
1780
+ mv (t1, TypeProfileArgsLimit);
1781
1781
blt (index , t1, loop);
1782
1782
bind (loopEnd);
1783
1783
@@ -1832,13 +1832,13 @@ void InterpreterMacroAssembler::profile_return_type(Register mdp, Register ret,
1832
1832
// length
1833
1833
Label do_profile;
1834
1834
lbu (t0, Address (xbcp, 0 ));
1835
- li (tmp, (u1)Bytecodes::_invokedynamic);
1835
+ mv (tmp, (u1)Bytecodes::_invokedynamic);
1836
1836
beq (t0, tmp, do_profile);
1837
- li (tmp, (u1)Bytecodes::_invokehandle);
1837
+ mv (tmp, (u1)Bytecodes::_invokehandle);
1838
1838
beq (t0, tmp, do_profile);
1839
1839
get_method (tmp);
1840
1840
lhu (t0, Address (tmp, Method::intrinsic_id_offset_in_bytes ()));
1841
- li (t1, static_cast <int >(vmIntrinsics::_compiledLambdaForm));
1841
+ mv (t1, static_cast <int >(vmIntrinsics::_compiledLambdaForm));
1842
1842
bne (t0, t1, profile_continue);
1843
1843
bind (do_profile);
1844
1844
}
0 commit comments