Skip to content

Commit 1acb40b

Browse files
committed
Fix return type of for truc_sat and convert instructions
Type_of says is to determine the return value for a webassembly operator. Truc_sat and convert simd instructions appear to be misplaced.
1 parent 522cc8a commit 1acb40b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cranelift/wasm/src/code_translator.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2682,9 +2682,9 @@ fn type_of(operator: &Operator) -> Type {
26822682
| Operator::I32x4MinU
26832683
| Operator::I32x4MaxS
26842684
| Operator::I32x4MaxU
2685-
| Operator::F32x4ConvertI32x4S
2686-
| Operator::F32x4ConvertI32x4U
26872685
| Operator::I32x4Bitmask
2686+
| Operator::I32x4TruncSatF32x4S
2687+
| Operator::I32x4TruncSatF32x4U
26882688
| Operator::V128Load32Zero { .. } => I32X4,
26892689

26902690
Operator::I64x2Splat
@@ -2731,8 +2731,8 @@ fn type_of(operator: &Operator) -> Type {
27312731
| Operator::F32x4Max
27322732
| Operator::F32x4PMin
27332733
| Operator::F32x4PMax
2734-
| Operator::I32x4TruncSatF32x4S
2735-
| Operator::I32x4TruncSatF32x4U
2734+
| Operator::F32x4ConvertI32x4S
2735+
| Operator::F32x4ConvertI32x4U
27362736
| Operator::F32x4Ceil
27372737
| Operator::F32x4Floor
27382738
| Operator::F32x4Trunc

0 commit comments

Comments
 (0)