Skip to content

Commit 30ae3fa

Browse files
authored
Merge pull request bytecodealliance#109 from nlewycky/patch-2
SIMD shifts take two operands not one.
2 parents df5b1ef + d387165 commit 30ae3fa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/operators_validator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1484,7 +1484,7 @@ impl OperatorValidator {
14841484
| Operator::I64x2ShrU => {
14851485
self.check_simd_enabled()?;
14861486
self.check_operands_2(Type::V128, Type::I32)?;
1487-
self.func_state.change_frame_with_type(1, Type::V128)?;
1487+
self.func_state.change_frame_with_type(2, Type::V128)?;
14881488
}
14891489

14901490
Operator::MemoryInit { segment } => {

0 commit comments

Comments
 (0)