Stop tracking if instruction formats have multiple results.
All instruction formats can represent multiple results now, so a few redundant formats can be removed: UnarySplit and BinaryOverflow.
This commit is contained in:
@@ -1429,12 +1429,6 @@ impl<'a> Parser<'a> {
|
||||
imm: self.match_ieee64("expected immediate 64-bit float operand")?,
|
||||
}
|
||||
}
|
||||
InstructionFormat::UnarySplit => {
|
||||
InstructionData::UnarySplit {
|
||||
opcode: opcode,
|
||||
arg: self.match_value("expected SSA value operand")?,
|
||||
}
|
||||
}
|
||||
InstructionFormat::Binary => {
|
||||
let lhs = self.match_value("expected SSA value first operand")?;
|
||||
self.match_token(Token::Comma, "expected ',' between operands")?;
|
||||
@@ -1454,15 +1448,6 @@ impl<'a> Parser<'a> {
|
||||
imm: rhs,
|
||||
}
|
||||
}
|
||||
InstructionFormat::BinaryOverflow => {
|
||||
let lhs = self.match_value("expected SSA value first operand")?;
|
||||
self.match_token(Token::Comma, "expected ',' between operands")?;
|
||||
let rhs = self.match_value("expected SSA value second operand")?;
|
||||
InstructionData::BinaryOverflow {
|
||||
opcode: opcode,
|
||||
args: [lhs, rhs],
|
||||
}
|
||||
}
|
||||
InstructionFormat::Ternary => {
|
||||
// Names here refer to the `select` instruction.
|
||||
// This format is also use by `fma`.
|
||||
|
||||
Reference in New Issue
Block a user