@@ -527,7 +527,7 @@ void InterpreterMacroAssembler::dispatch_base(TosState state,
527527 bnez (t1, safepoint);
528528 }
529529 if (table == Interpreter::dispatch_table (state)) {
530- li (t1, Interpreter::distance_from_dispatch_table (state));
530+ mv (t1, Interpreter::distance_from_dispatch_table (state));
531531 add (t1, Rs, t1);
532532 shadd (t1, t1, xdispatch, t1, 3 );
533533 } else {
@@ -835,7 +835,7 @@ void InterpreterMacroAssembler::lock_object(Register lock_reg)
835835 // least significant 3 bits clear.
836836 // NOTE: the oopMark is in swap_reg x10 as the result of cmpxchg
837837 sub (swap_reg, swap_reg, sp);
838- li (t0, (int64_t )(7 - os::vm_page_size ()));
838+ mv (t0, (int64_t )(7 - os::vm_page_size ()));
839839 andr (swap_reg, swap_reg, t0);
840840
841841 // Save the test result, for recursive case, the result is zero
@@ -1677,7 +1677,7 @@ void InterpreterMacroAssembler::profile_obj_type(Register obj, const Address& md
16771677
16781678 ld (t0, mdo_addr);
16791679 beqz (t0, none);
1680- li (tmp, (u1)TypeEntries::null_seen);
1680+ mv (tmp, (u1)TypeEntries::null_seen);
16811681 beq (t0, tmp, none);
16821682 // There is a chance that the checks above (re-reading profiling
16831683 // data from memory) fail if another thread has just set the
@@ -1712,10 +1712,10 @@ void InterpreterMacroAssembler::profile_arguments_type(Register mdp, Register ca
17121712
17131713 lbu (t0, Address (mdp, in_bytes (DataLayout::tag_offset ()) - off_to_start));
17141714 if (is_virtual) {
1715- li (tmp, (u1)DataLayout::virtual_call_type_data_tag);
1715+ mv (tmp, (u1)DataLayout::virtual_call_type_data_tag);
17161716 bne (t0, tmp, profile_continue);
17171717 } else {
1718- li (tmp, (u1)DataLayout::call_type_data_tag);
1718+ mv (tmp, (u1)DataLayout::call_type_data_tag);
17191719 bne (t0, tmp, profile_continue);
17201720 }
17211721
@@ -1745,15 +1745,15 @@ void InterpreterMacroAssembler::profile_arguments_type(Register mdp, Register ca
17451745 mv (index, zr); // index < TypeProfileArgsLimit
17461746 bind (loop);
17471747 bgtz (index, profileReturnType);
1748- li (t0, (int )MethodData::profile_return ());
1748+ mv (t0, (int )MethodData::profile_return ());
17491749 beqz (t0, profileArgument); // (index > 0 || MethodData::profile_return()) == false
17501750 bind (profileReturnType);
17511751 // If return value type is profiled we may have no argument to profile
17521752 ld (tmp, Address (mdp, in_bytes (TypeEntriesAtCall::cell_count_offset ())));
17531753 mv (t1, - TypeStackSlotEntries::per_arg_count ());
17541754 mul (t1, index, t1);
17551755 add (tmp, tmp, t1);
1756- li (t1, TypeStackSlotEntries::per_arg_count ());
1756+ mv (t1, TypeStackSlotEntries::per_arg_count ());
17571757 add (t0, mdp, off_to_args);
17581758 blt (tmp, t1, done);
17591759
@@ -1764,8 +1764,8 @@ void InterpreterMacroAssembler::profile_arguments_type(Register mdp, Register ca
17641764 // stack offset o (zero based) from the start of the argument
17651765 // list, for n arguments translates into offset n - o - 1 from
17661766 // the end of the argument list
1767- li (t0, stack_slot_offset0);
1768- li (t1, slot_step);
1767+ mv (t0, stack_slot_offset0);
1768+ mv (t1, slot_step);
17691769 mul (t1, index, t1);
17701770 add (t0, t0, t1);
17711771 add (t0, mdp, t0);
@@ -1775,8 +1775,8 @@ void InterpreterMacroAssembler::profile_arguments_type(Register mdp, Register ca
17751775 Address arg_addr = argument_address (tmp);
17761776 ld (tmp, arg_addr);
17771777
1778- li (t0, argument_type_offset0);
1779- li (t1, type_step);
1778+ mv (t0, argument_type_offset0);
1779+ mv (t1, type_step);
17801780 mul (t1, index, t1);
17811781 add (t0, t0, t1);
17821782 add (mdo_addr, mdp, t0);
@@ -1788,7 +1788,7 @@ void InterpreterMacroAssembler::profile_arguments_type(Register mdp, Register ca
17881788
17891789 // increment index by 1
17901790 addi (index, index, 1 );
1791- li (t1, TypeProfileArgsLimit);
1791+ mv (t1, TypeProfileArgsLimit);
17921792 blt (index, t1, loop);
17931793 bind (loopEnd);
17941794
@@ -1843,13 +1843,13 @@ void InterpreterMacroAssembler::profile_return_type(Register mdp, Register ret,
18431843 // length
18441844 Label do_profile;
18451845 lbu (t0, Address (xbcp, 0 ));
1846- li (tmp, (u1)Bytecodes::_invokedynamic);
1846+ mv (tmp, (u1)Bytecodes::_invokedynamic);
18471847 beq (t0, tmp, do_profile);
1848- li (tmp, (u1)Bytecodes::_invokehandle);
1848+ mv (tmp, (u1)Bytecodes::_invokehandle);
18491849 beq (t0, tmp, do_profile);
18501850 get_method (tmp);
18511851 lhu (t0, Address (tmp, Method::intrinsic_id_offset_in_bytes ()));
1852- li (t1, static_cast <int >(vmIntrinsics::_compiledLambdaForm));
1852+ mv (t1, static_cast <int >(vmIntrinsics::_compiledLambdaForm));
18531853 bne (t0, t1, profile_continue);
18541854 bind (do_profile);
18551855 }
0 commit comments