@@ -1141,39 +1141,39 @@ impl<'a> VisitOperator<'a> for FuncTranslator {
1141
1141
}
1142
1142
1143
1143
fn visit_f32_convert_i32_s ( & mut self ) -> Self :: Output {
1144
- todo ! ( )
1144
+ self . translate_unary :: < i32 , f32 > ( Instruction :: f32_convert_i32_s , wasm :: f32_convert_i32_s )
1145
1145
}
1146
1146
1147
1147
fn visit_f32_convert_i32_u ( & mut self ) -> Self :: Output {
1148
- todo ! ( )
1148
+ self . translate_unary :: < u32 , f32 > ( Instruction :: f32_convert_i32_u , wasm :: f32_convert_i32_u )
1149
1149
}
1150
1150
1151
1151
fn visit_f32_convert_i64_s ( & mut self ) -> Self :: Output {
1152
- todo ! ( )
1152
+ self . translate_unary :: < i64 , f32 > ( Instruction :: f32_convert_i64_s , wasm :: f32_convert_i64_s )
1153
1153
}
1154
1154
1155
1155
fn visit_f32_convert_i64_u ( & mut self ) -> Self :: Output {
1156
- todo ! ( )
1156
+ self . translate_unary :: < u64 , f32 > ( Instruction :: f32_convert_i64_u , wasm :: f32_convert_i64_u )
1157
1157
}
1158
1158
1159
1159
fn visit_f32_demote_f64 ( & mut self ) -> Self :: Output {
1160
1160
todo ! ( )
1161
1161
}
1162
1162
1163
1163
fn visit_f64_convert_i32_s ( & mut self ) -> Self :: Output {
1164
- todo ! ( )
1164
+ self . translate_unary :: < i32 , f64 > ( Instruction :: f64_convert_i32_s , wasm :: f64_convert_i32_s )
1165
1165
}
1166
1166
1167
1167
fn visit_f64_convert_i32_u ( & mut self ) -> Self :: Output {
1168
- todo ! ( )
1168
+ self . translate_unary :: < u32 , f64 > ( Instruction :: f64_convert_i32_u , wasm :: f64_convert_i32_u )
1169
1169
}
1170
1170
1171
1171
fn visit_f64_convert_i64_s ( & mut self ) -> Self :: Output {
1172
- todo ! ( )
1172
+ self . translate_unary :: < i64 , f64 > ( Instruction :: f64_convert_i64_s , wasm :: f64_convert_i64_s )
1173
1173
}
1174
1174
1175
1175
fn visit_f64_convert_i64_u ( & mut self ) -> Self :: Output {
1176
- todo ! ( )
1176
+ self . translate_unary :: < u64 , f64 > ( Instruction :: f64_convert_i64_u , wasm :: f64_convert_i64_u )
1177
1177
}
1178
1178
1179
1179
fn visit_f64_promote_f32 ( & mut self ) -> Self :: Output {
0 commit comments