@@ -524,7 +524,7 @@ void InterpreterMacroAssembler::dispatch_base(TosState state,
524524 bnez (t1, safepoint);
525525 }
526526 if (table == Interpreter::dispatch_table (state)) {
527- li (t1, Interpreter::distance_from_dispatch_table (state));
527+ mv (t1, Interpreter::distance_from_dispatch_table (state));
528528 add (t1, Rs, t1);
529529 shadd (t1, t1, xdispatch, t1, 3 );
530530 } else {
@@ -828,7 +828,7 @@ void InterpreterMacroAssembler::lock_object(Register lock_reg)
828828 // least significant 3 bits clear.
829829 // NOTE: the oopMark is in swap_reg x10 as the result of cmpxchg
830830 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 ()));
832832 andr (swap_reg, swap_reg, t0);
833833
834834 // 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
16661666
16671667 ld (t0, mdo_addr);
16681668 beqz (t0, none);
1669- li (tmp, (u1)TypeEntries::null_seen);
1669+ mv (tmp, (u1)TypeEntries::null_seen);
16701670 beq (t0, tmp, none);
16711671 // There is a chance that the checks above (re-reading profiling
16721672 // data from memory) fail if another thread has just set the
@@ -1701,10 +1701,10 @@ void InterpreterMacroAssembler::profile_arguments_type(Register mdp, Register ca
17011701
17021702 lbu (t0, Address (mdp, in_bytes (DataLayout::tag_offset ()) - off_to_start));
17031703 if (is_virtual) {
1704- li (tmp, (u1)DataLayout::virtual_call_type_data_tag);
1704+ mv (tmp, (u1)DataLayout::virtual_call_type_data_tag);
17051705 bne (t0, tmp, profile_continue);
17061706 } else {
1707- li (tmp, (u1)DataLayout::call_type_data_tag);
1707+ mv (tmp, (u1)DataLayout::call_type_data_tag);
17081708 bne (t0, tmp, profile_continue);
17091709 }
17101710
@@ -1734,15 +1734,15 @@ void InterpreterMacroAssembler::profile_arguments_type(Register mdp, Register ca
17341734 mv (index, zr); // index < TypeProfileArgsLimit
17351735 bind (loop);
17361736 bgtz (index, profileReturnType);
1737- li (t0, (int )MethodData::profile_return ());
1737+ mv (t0, (int )MethodData::profile_return ());
17381738 beqz (t0, profileArgument); // (index > 0 || MethodData::profile_return()) == false
17391739 bind (profileReturnType);
17401740 // If return value type is profiled we may have no argument to profile
17411741 ld (tmp, Address (mdp, in_bytes (TypeEntriesAtCall::cell_count_offset ())));
17421742 mv (t1, - TypeStackSlotEntries::per_arg_count ());
17431743 mul (t1, index, t1);
17441744 add (tmp, tmp, t1);
1745- li (t1, TypeStackSlotEntries::per_arg_count ());
1745+ mv (t1, TypeStackSlotEntries::per_arg_count ());
17461746 add (t0, mdp, off_to_args);
17471747 blt (tmp, t1, done);
17481748
@@ -1753,8 +1753,8 @@ void InterpreterMacroAssembler::profile_arguments_type(Register mdp, Register ca
17531753 // stack offset o (zero based) from the start of the argument
17541754 // list, for n arguments translates into offset n - o - 1 from
17551755 // 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);
17581758 mul (t1, index, t1);
17591759 add (t0, t0, t1);
17601760 add (t0, mdp, t0);
@@ -1764,8 +1764,8 @@ void InterpreterMacroAssembler::profile_arguments_type(Register mdp, Register ca
17641764 Address arg_addr = argument_address (tmp);
17651765 ld (tmp, arg_addr);
17661766
1767- li (t0, argument_type_offset0);
1768- li (t1, type_step);
1767+ mv (t0, argument_type_offset0);
1768+ mv (t1, type_step);
17691769 mul (t1, index, t1);
17701770 add (t0, t0, t1);
17711771 add (mdo_addr, mdp, t0);
@@ -1777,7 +1777,7 @@ void InterpreterMacroAssembler::profile_arguments_type(Register mdp, Register ca
17771777
17781778 // increment index by 1
17791779 addi (index, index, 1 );
1780- li (t1, TypeProfileArgsLimit);
1780+ mv (t1, TypeProfileArgsLimit);
17811781 blt (index, t1, loop);
17821782 bind (loopEnd);
17831783
@@ -1832,13 +1832,13 @@ void InterpreterMacroAssembler::profile_return_type(Register mdp, Register ret,
18321832 // length
18331833 Label do_profile;
18341834 lbu (t0, Address (xbcp, 0 ));
1835- li (tmp, (u1)Bytecodes::_invokedynamic);
1835+ mv (tmp, (u1)Bytecodes::_invokedynamic);
18361836 beq (t0, tmp, do_profile);
1837- li (tmp, (u1)Bytecodes::_invokehandle);
1837+ mv (tmp, (u1)Bytecodes::_invokehandle);
18381838 beq (t0, tmp, do_profile);
18391839 get_method (tmp);
18401840 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));
18421842 bne (t0, t1, profile_continue);
18431843 bind (do_profile);
18441844 }
0 commit comments