blt
Branch if less than
This instruction is defined by:
Synopsis
Branch to PC + imm if the signed value in register xs1 is less than the signed value in register xs2.
Raise a MisalignedAddress
exception if PC + imm is misaligned.
Decode Variables
Bits<13> imm = {$encoding[31], $encoding[7], $encoding[30:25], $encoding[11:8], 1'd0};
Bits<5> xs2 = $encoding[24:20];
Bits<5> xs1 = $encoding[19:15];
Execution
-
Pruned, XLEN == 64
-
Original
XReg lhs = X[xs1];
XReg rhs = X[xs2];
if ($signed(lhs) < $signed(rhs)) {
%%LINK%func;jump_halfword;jump_halfword%%($pc + $signed(imm));
}
XReg lhs = X[xs1];
XReg rhs = X[xs2];
if ($signed(lhs) < $signed(rhs)) {
%%LINK%func;jump_halfword;jump_halfword%%($pc + $signed(imm));
}