Add copy_special instruction.

This commit is contained in:
Tyler McMullen
2017-11-22 19:18:11 -08:00
committed by Jakob Stoklund Olesen
parent 8ed37e352e
commit cdf70ccb77
6 changed files with 36 additions and 0 deletions

View File

@@ -2270,6 +2270,15 @@ impl<'a> Parser<'a> {
dst,
}
}
InstructionFormat::CopySpecial => {
let src = self.match_regunit(ctx.unique_isa)?;
self.match_token(
Token::Arrow,
"expected '->' between register units",
)?;
let dst = self.match_regunit(ctx.unique_isa)?;
InstructionData::CopySpecial { opcode, src, dst }
}
InstructionFormat::RegSpill => {
let arg = self.match_value("expected SSA value operand")?;
self.match_token(