jasmin icon indicating copy to clipboard operation
jasmin copied to clipboard

In-place operations with memory operands

Open vbgl opened this issue 11 months ago • 0 comments

Compiling the following program crashes at asm-generation time:

export fn bad_inc(reg u64 p) {
  [p + 8] = [p] + 1;
}

Stack-allocation is not aware of x86 constraints about source and destination being the same. Lowering might be to blame too.

vbgl avatar Mar 20 '24 10:03 vbgl