Remove trapif and trapff (#5162)
This branch removes the trapif and trapff instructions, in favor of using an explicit comparison and trapnz. This moves us closer to removing iflags and fflags, but introduces the need to implement instructions like iadd_cout in the x64 and aarch64 backends.
This commit is contained in:
@@ -3021,30 +3021,6 @@ impl<'a> Parser<'a> {
|
||||
let code = self.match_enum("expected trap code")?;
|
||||
InstructionData::CondTrap { opcode, arg, code }
|
||||
}
|
||||
InstructionFormat::IntCondTrap => {
|
||||
let cond = self.match_enum("expected intcc condition code")?;
|
||||
let arg = self.match_value("expected SSA value operand")?;
|
||||
self.match_token(Token::Comma, "expected ',' between operands")?;
|
||||
let code = self.match_enum("expected trap code")?;
|
||||
InstructionData::IntCondTrap {
|
||||
opcode,
|
||||
cond,
|
||||
arg,
|
||||
code,
|
||||
}
|
||||
}
|
||||
InstructionFormat::FloatCondTrap => {
|
||||
let cond = self.match_enum("expected floatcc condition code")?;
|
||||
let arg = self.match_value("expected SSA value operand")?;
|
||||
self.match_token(Token::Comma, "expected ',' between operands")?;
|
||||
let code = self.match_enum("expected trap code")?;
|
||||
InstructionData::FloatCondTrap {
|
||||
opcode,
|
||||
cond,
|
||||
arg,
|
||||
code,
|
||||
}
|
||||
}
|
||||
InstructionFormat::AtomicCas => {
|
||||
let flags = self.optional_memflags();
|
||||
let addr = self.match_value("expected SSA value address")?;
|
||||
|
||||
Reference in New Issue
Block a user