< prev index next > src/hotspot/cpu/riscv/macroAssembler_riscv.cpp
Print this page
jalr(x1, tmp, offset);
});
}
}
- void MacroAssembler::test_bit(Register Rd, Register Rs, uint32_t bit_pos, Register tmp) {
- assert(bit_pos < 64, "invalid bit range");
- if (UseZbs) {
- bexti(Rd, Rs, bit_pos);
- return;
- }
- andi(Rd, Rs, 1UL << bit_pos, tmp);
- }
-
// Implements fast-locking.
// Branches to slow upon failure to lock the object.
// Falls through upon success.
//
// - obj: the object to be locked
< prev index next >