Remove the sarg_t type and dummy_sarg_t instruction

They are no longer necessary with the new style backends
This commit is contained in:
bjorn3
2021-10-10 14:37:02 +02:00
parent 855ba39217
commit 8a8797b911
8 changed files with 3 additions and 56 deletions

View File

@@ -326,7 +326,6 @@ impl<'a> Lexer<'a> {
.unwrap_or_else(|| match text {
"iflags" => Token::Type(types::IFLAGS),
"fflags" => Token::Type(types::FFLAGS),
"sarg_t" => Token::Type(types::SARG_T),
_ => Token::Identifier(text),
}),
loc,
@@ -620,7 +619,7 @@ mod tests {
let mut lex = Lexer::new(
"v0 v00 vx01 block1234567890 block5234567890 v1x vx1 vxvx4 \
function0 function b1 i32x4 f32x5 \
iflags fflags sarg_t iflagss",
iflags fflags iflagss",
);
assert_eq!(
lex.next(),
@@ -643,7 +642,6 @@ mod tests {
assert_eq!(lex.next(), token(Token::Identifier("f32x5"), 1));
assert_eq!(lex.next(), token(Token::Type(types::IFLAGS), 1));
assert_eq!(lex.next(), token(Token::Type(types::FFLAGS), 1));
assert_eq!(lex.next(), token(Token::Type(types::SARG_T), 1));
assert_eq!(lex.next(), token(Token::Identifier("iflagss"), 1));
assert_eq!(lex.next(), None);
}