jasmin icon indicating copy to clipboard operation
jasmin copied to clipboard

Regalloc: fresh variables may have wrong kind

Open vbgl opened this issue 1 year ago • 0 comments

export
fn add_stack(reg u64 x) {
  stack u64 s;
  s = 0;
  ?{}, _ = #ADD(s, x);
}

The Regalloc.fill_in_missing_names function creates a variable of kind reg for the _ destination, which later leads to asmgen failure:

"bug_679.jazz", line 5 (2-22): internal compilation error in function add_stack: asmgen: (compile_arg) not compatible asm_arg

vbgl avatar Jan 11 '24 12:01 vbgl