Remove outdated tests from cranelift-codegen-meta

This commit is contained in:
bjorn3
2021-09-29 18:43:04 +02:00
parent a2040542ce
commit 3fae9e5fa9

View File

@@ -719,13 +719,6 @@ mod test {
inst.bind(LaneType::Int(I32)); inst.bind(LaneType::Int(I32));
} }
#[test]
fn ensure_bound_instructions_can_bind_immediates() {
let inst = build_fake_instruction(vec![OperandKindFields::ImmValue], vec![]);
let bound_inst = inst.bind(Immediate::IntCC(IntCC::Equal));
assert!(bound_inst.verify_bindings().is_ok());
}
#[test] #[test]
#[should_panic] #[should_panic]
fn ensure_instructions_fail_to_bind() { fn ensure_instructions_fail_to_bind() {
@@ -742,14 +735,4 @@ mod test {
let inst = build_fake_instruction(vec![in1], vec![]); let inst = build_fake_instruction(vec![in1], vec![]);
inst.bind(LaneType::Int(I32)).bind(LaneType::Int(I64)); inst.bind(LaneType::Int(I32)).bind(LaneType::Int(I64));
} }
#[test]
#[should_panic]
fn ensure_instructions_fail_to_bind_too_many_immediates() {
let inst = build_fake_instruction(vec![OperandKindFields::ImmValue], vec![]);
inst.bind(BindParameter::Immediate(Immediate::IntCC(IntCC::Equal)))
.bind(BindParameter::Immediate(Immediate::IntCC(IntCC::Equal)));
// Trying to bind too many immediates to an instruction should fail; note that the immediate
// values are nonsensical but irrelevant to the purpose of this test.
}
} }