@@ -512,7 +512,7 @@ void InterpreterMacroAssembler::dispatch_base(TosState state,
512
512
bnez (t1, safepoint);
513
513
}
514
514
if (table == Interpreter::dispatch_table (state)) {
515
- li (t1, Interpreter::distance_from_dispatch_table (state));
515
+ mv (t1, Interpreter::distance_from_dispatch_table (state));
516
516
add (t1, Rs, t1);
517
517
shadd (t1, t1, xdispatch, t1, 3 );
518
518
} else {
@@ -805,7 +805,7 @@ void InterpreterMacroAssembler::lock_object(Register lock_reg)
805
805
// least significant 3 bits clear.
806
806
// NOTE: the oopMark is in swap_reg x10 as the result of cmpxchg
807
807
sub (swap_reg, swap_reg, sp);
808
- li (t0, (int64_t )(7 - os::vm_page_size ()));
808
+ mv (t0, (int64_t )(7 - os::vm_page_size ()));
809
809
andr (swap_reg, swap_reg, t0);
810
810
811
811
// Save the test result, for recursive case, the result is zero
@@ -1657,7 +1657,7 @@ void InterpreterMacroAssembler::profile_obj_type(Register obj, const Address& md
1657
1657
1658
1658
ld (t0, mdo_addr);
1659
1659
beqz (t0, none);
1660
- li (tmp, (u1)TypeEntries::null_seen);
1660
+ mv (tmp, (u1)TypeEntries::null_seen);
1661
1661
beq (t0, tmp, none);
1662
1662
// There is a chance that the checks above (re-reading profiling
1663
1663
// data from memory) fail if another thread has just set the
@@ -1692,10 +1692,10 @@ void InterpreterMacroAssembler::profile_arguments_type(Register mdp, Register ca
1692
1692
1693
1693
lbu (t0, Address (mdp, in_bytes (DataLayout::tag_offset ()) - off_to_start));
1694
1694
if (is_virtual) {
1695
- li (tmp, (u1)DataLayout::virtual_call_type_data_tag);
1695
+ mv (tmp, (u1)DataLayout::virtual_call_type_data_tag);
1696
1696
bne (t0, tmp, profile_continue);
1697
1697
} else {
1698
- li (tmp, (u1)DataLayout::call_type_data_tag);
1698
+ mv (tmp, (u1)DataLayout::call_type_data_tag);
1699
1699
bne (t0, tmp, profile_continue);
1700
1700
}
1701
1701
@@ -1725,15 +1725,15 @@ void InterpreterMacroAssembler::profile_arguments_type(Register mdp, Register ca
1725
1725
mv (index , zr); // index < TypeProfileArgsLimit
1726
1726
bind (loop);
1727
1727
bgtz (index , profileReturnType);
1728
- li (t0, (int )MethodData::profile_return ());
1728
+ mv (t0, (int )MethodData::profile_return ());
1729
1729
beqz (t0, profileArgument); // (index > 0 || MethodData::profile_return()) == false
1730
1730
bind (profileReturnType);
1731
1731
// If return value type is profiled we may have no argument to profile
1732
1732
ld (tmp, Address (mdp, in_bytes (TypeEntriesAtCall::cell_count_offset ())));
1733
1733
mv (t1, - TypeStackSlotEntries::per_arg_count ());
1734
1734
mul (t1, index , t1);
1735
1735
add (tmp, tmp, t1);
1736
- li (t1, TypeStackSlotEntries::per_arg_count ());
1736
+ mv (t1, TypeStackSlotEntries::per_arg_count ());
1737
1737
add (t0, mdp, off_to_args);
1738
1738
blt (tmp, t1, done);
1739
1739
@@ -1744,8 +1744,8 @@ void InterpreterMacroAssembler::profile_arguments_type(Register mdp, Register ca
1744
1744
// stack offset o (zero based) from the start of the argument
1745
1745
// list, for n arguments translates into offset n - o - 1 from
1746
1746
// the end of the argument list
1747
- li (t0, stack_slot_offset0);
1748
- li (t1, slot_step);
1747
+ mv (t0, stack_slot_offset0);
1748
+ mv (t1, slot_step);
1749
1749
mul (t1, index , t1);
1750
1750
add (t0, t0, t1);
1751
1751
add (t0, mdp, t0);
@@ -1755,8 +1755,8 @@ void InterpreterMacroAssembler::profile_arguments_type(Register mdp, Register ca
1755
1755
Address arg_addr = argument_address (tmp);
1756
1756
ld (tmp, arg_addr);
1757
1757
1758
- li (t0, argument_type_offset0);
1759
- li (t1, type_step);
1758
+ mv (t0, argument_type_offset0);
1759
+ mv (t1, type_step);
1760
1760
mul (t1, index , t1);
1761
1761
add (t0, t0, t1);
1762
1762
add (mdo_addr, mdp, t0);
@@ -1768,7 +1768,7 @@ void InterpreterMacroAssembler::profile_arguments_type(Register mdp, Register ca
1768
1768
1769
1769
// increment index by 1
1770
1770
addi (index , index , 1 );
1771
- li (t1, TypeProfileArgsLimit);
1771
+ mv (t1, TypeProfileArgsLimit);
1772
1772
blt (index , t1, loop);
1773
1773
bind (loopEnd);
1774
1774
@@ -1823,13 +1823,13 @@ void InterpreterMacroAssembler::profile_return_type(Register mdp, Register ret,
1823
1823
// length
1824
1824
Label do_profile;
1825
1825
lbu (t0, Address (xbcp, 0 ));
1826
- li (tmp, (u1)Bytecodes::_invokedynamic);
1826
+ mv (tmp, (u1)Bytecodes::_invokedynamic);
1827
1827
beq (t0, tmp, do_profile);
1828
- li (tmp, (u1)Bytecodes::_invokehandle);
1828
+ mv (tmp, (u1)Bytecodes::_invokehandle);
1829
1829
beq (t0, tmp, do_profile);
1830
1830
get_method (tmp);
1831
1831
lhu (t0, Address (tmp, Method::intrinsic_id_offset_in_bytes ()));
1832
- li (t1, vmIntrinsics::_compiledLambdaForm);
1832
+ mv (t1, vmIntrinsics::_compiledLambdaForm);
1833
1833
bne (t0, t1, profile_continue);
1834
1834
bind (do_profile);
1835
1835
}
0 commit comments