Simplify binding of IntCC::Equals to SIMD icmp; fixes #1150

This commit is contained in:
Andrew Brown
2019-10-23 14:52:44 -07:00
parent e045a6df27
commit f37d1c7ecc
3 changed files with 21 additions and 48 deletions

View File

@@ -93,7 +93,10 @@ impl EncodingBuilder {
{
let immediate_predicate = InstructionPredicate::new_is_field_equal(
&inst.inst.format,
immediate_operand.name,
immediate_operand
.kind
.default_member
.expect("Immediates must always have a default member name set."),
immediate_value.to_string(),
);
inst_predicate = if let Some(type_predicate) = inst_predicate {