From cf0c31cc85e91e47b167235f250d184cfbcd0372 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Capucho?= Date: Wed, 15 Dec 2021 21:35:19 +0000 Subject: [PATCH] spv-in: Allow branch weights in OpBranchConditional --- src/front/spv/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/front/spv/mod.rs b/src/front/spv/mod.rs index 5f4a7817e1..9644099895 100644 --- a/src/front/spv/mod.rs +++ b/src/front/spv/mod.rs @@ -2832,6 +2832,11 @@ impl> Parser { reject, }); + // Consume branch weights + for _ in 4..inst.wc { + let _ = self.next()?; + } + return Ok(()); } Op::Switch => {