Commit c8d51a81 authored by Richard Stotz's avatar Richard Stotz Committed by Commit Bot

[wasm][liftoff][arm64] Add saturated conversion float->int

Bug: v8:10520
Change-Id: I765201107b6cee20ad8591db57ac88fef5b3dbbe
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2207534
Commit-Queue: Richard Stotz <rstz@chromium.org>
Reviewed-by: 's avatarAndreas Haas <ahaas@chromium.org>
Cr-Commit-Position: refs/heads/master@{#67899}
parent d29f29ce
......@@ -959,28 +959,28 @@ bool LiftoffAssembler::emit_type_conversion(WasmOpcode opcode,
return true;
}
case kExprI32SConvertSatF32:
bailout(kNonTrappingFloatToInt, "kExprI32SConvertSatF32");
Fcvtzs(dst.gp().W(), src.fp().S());
return true;
case kExprI32UConvertSatF32:
bailout(kNonTrappingFloatToInt, "kExprI32UConvertSatF32");
Fcvtzu(dst.gp().W(), src.fp().S());
return true;
case kExprI32SConvertSatF64:
bailout(kNonTrappingFloatToInt, "kExprI32SConvertSatF64");
Fcvtzs(dst.gp().W(), src.fp().D());
return true;
case kExprI32UConvertSatF64:
bailout(kNonTrappingFloatToInt, "kExprI32UConvertSatF64");
Fcvtzu(dst.gp().W(), src.fp().D());
return true;
case kExprI64SConvertSatF32:
bailout(kNonTrappingFloatToInt, "kExprI64SConvertSatF32");
Fcvtzs(dst.gp().X(), src.fp().S());
return true;
case kExprI64UConvertSatF32:
bailout(kNonTrappingFloatToInt, "kExprI64UConvertSatF32");
Fcvtzu(dst.gp().X(), src.fp().S());
return true;
case kExprI64SConvertSatF64:
bailout(kNonTrappingFloatToInt, "kExprI64SConvertSatF64");
Fcvtzs(dst.gp().X(), src.fp().D());
return true;
case kExprI64UConvertSatF64:
bailout(kNonTrappingFloatToInt, "kExprI64UConvertSatF64");
Fcvtzu(dst.gp().X(), src.fp().D());
return true;
case kExprI32ReinterpretF32:
Fmov(dst.gp().W(), src.fp().S());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment