Commit 7304778c authored by qinsoon's avatar qinsoon

emit_get_mem_from_inst_inner() emits ireg for general cases

parent 866e3df4
Pipeline #603 passed with stages
in 41 minutes and 46 seconds
......@@ -4510,7 +4510,19 @@ impl <'a> InstructionSelection {
}
}
_ => unimplemented!()
_ => {
let tmp_loc = self.emit_ireg(op, f_content, f_context, vm);
let ret = MemoryLocation::Address {
base: tmp_loc,
offset: None,
index: None,
scale: None
};
trace!("MEM from general ireg inst: {}", op);
ret
}
}
},
_ => panic!("expecting a instruction that yields a memory address")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment