Skip to content

Commit f1e773d

Browse files
committed
Translate Wasm's f32x4.convert_i32x4_u instruction to Cranelift's fcvt_from_uint
1 parent 01d34e7 commit f1e773d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cranelift/wasm/src/code_translator.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1544,9 +1544,12 @@ pub fn translate_operator<FE: FuncEnvironment + ?Sized>(
15441544
let a = pop1_with_bitcast(state, I32X4, builder);
15451545
state.push1(builder.ins().fcvt_from_sint(F32X4, a))
15461546
}
1547+
Operator::F32x4ConvertI32x4U => {
1548+
let a = pop1_with_bitcast(state, I32X4, builder);
1549+
state.push1(builder.ins().fcvt_from_uint(F32X4, a))
1550+
}
15471551
Operator::I32x4TruncSatF32x4S
15481552
| Operator::I32x4TruncSatF32x4U
1549-
| Operator::F32x4ConvertI32x4U
15501553
| Operator::I8x16Abs
15511554
| Operator::I16x8Abs
15521555
| Operator::I32x4Abs

0 commit comments

Comments
 (0)