[meta] Riscv: add back stacknull encodings for copy_nop;

This commit is contained in:
Benjamin Bouvier
2019-07-08 13:00:02 +02:00
parent 59f6c81e4f
commit 84a6795873
2 changed files with 24 additions and 1 deletions

View File

@@ -263,5 +263,13 @@ pub fn define<'formats>(
.emit("unimplemented!();"),
);
// Stack-slot to same stack-slot copy, which is guaranteed to turn into a no-op.
recipes.push(
EncodingRecipeBuilder::new("stacknull", f_unary, 0)
.operands_in(vec![Stack::new(gpr)])
.operands_out(vec![Stack::new(gpr)])
.emit(""),
);
recipes
}