lh.aqrl

Load 16 bits of data from the address in `xs1` into register `xd`, sign-extending the result to XLEN bits. This instruction has both acquire and release semantics. No subsequent memory operations (in program order) from this hart can be observed to occur before this load completes, and no previous memory operations can be observed to occur after this load completes. The address must be naturally aligned (2-byte aligned); if not, an address-misaligned or access-fault exception will be raised.

Synopsis

lh.aqrl xd, (xs1)

Encoding

Type:

067111214151920310101111xd001xs1001101100000
funct7: 0011011
funct3: 001
opcode: 0101111

RISC-V Instruction Encoder/Decoder

open lh.aqrl in rvcodecjs

Availability