On Mon, May 20, 2024 at 02:52:55PM -0700, Dave Thaler wrote: > imm is defined as a 32-bit signed integer. > > {MOV, K, ALU64} says it does "dst = src" (where src is 'imm') and it > does do dst = (s64)imm, which in that sense does sign extend imm. The MOVSX > instruction is explained as sign extending, so added the example of > {MOV, K, ALU64} to make this more clear. > > {JLE, K, JMP} says it does "PC += offset if dst <= src" (where src is 'imm', > and the comparison is unsigned). This was apparently ambiguous to some > readers as to whether the comparison was "dst <= (u64)(u32)imm" or > "dst <= (u64)(s64)imm" so added an example to make this more clear. > > v1 -> v2: Address comments from Yonghong > > Signed-off-by: Dave Thaler <dthaler1968@xxxxxxxxxxxxxx> Acked-by: David Vernet <void@xxxxxxxxxxxxx>
Attachment:
signature.asc
Description: PGP signature