We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4da16af commit 49c874bCopy full SHA for 49c874b
crates/wasmi/src/engine/translator/func2/mod.rs
@@ -506,7 +506,11 @@ impl FuncTranslator {
506
},
507
Err(_) => {
508
let zero = self.layout.const_to_reg(0_i32)?;
509
- self.make_branch_cmp_fallback(Comparator::I32Eq, condition, zero, offset)?
+ let comparator = match branch_eqz {
510
+ true => Comparator::I32Eq,
511
+ false => Comparator::I32Ne,
512
+ };
513
+ self.make_branch_cmp_fallback(comparator, condition, zero, offset)?
514
}
515
};
516
self.push_instr(instr, FuelCostsProvider::base)
0 commit comments