| Index: src/wasm/asm-wasm-builder.cc
|
| diff --git a/src/wasm/asm-wasm-builder.cc b/src/wasm/asm-wasm-builder.cc
|
| index fe6abdaaf8bb110e06b434b868d016f6e27ad624..4c7410d7e004c612e809db7f3ccc06da5da3188e 100644
|
| --- a/src/wasm/asm-wasm-builder.cc
|
| +++ b/src/wasm/asm-wasm-builder.cc
|
| @@ -997,6 +997,22 @@ class AsmWasmBuilderImpl : public AstVisitor {
|
| return true;
|
| }
|
| }
|
| + switch (TypeIndexOf(args->at(0))) {
|
| + case kInt32:
|
| + case kFixnum:
|
| + current_function_builder_->Emit(kExprF32SConvertI32);
|
| + break;
|
| + case kUint32:
|
| + current_function_builder_->Emit(kExprF32UConvertI32);
|
| + break;
|
| + case kFloat32:
|
| + break;
|
| + case kFloat64:
|
| + current_function_builder_->Emit(kExprF32ConvertF64);
|
| + break;
|
| + default:
|
| + UNREACHABLE();
|
| + }
|
| break;
|
| }
|
| default: {
|
|
|