[mips][wasm-simd][liftoff] Implement rounding average
Port bd04ee0864
https://crrev.com/c/2143386
Change-Id: I547c9b5b341abe76d6983a07633129299c32e017
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2143978
Reviewed-by: Zhi An Ng <zhin@chromium.org>
Commit-Queue: Zhao Jiazhong <zhaojiazhong-hf@loongson.cn>
Cr-Commit-Position: refs/heads/master@{#67098}
This commit is contained in:
parent
bf7e23afba
commit
ffb4f2b77f
@ -2000,6 +2000,24 @@ void LiftoffAssembler::emit_f64x2_replace_lane(LiftoffRegister dst,
|
||||
bailout(kSimd, "emit_f64x2_replace_lane");
|
||||
}
|
||||
|
||||
void LiftoffAssembler::emit_i8x16_rounding_average_u(LiftoffRegister dst,
|
||||
LiftoffRegister lhs,
|
||||
LiftoffRegister rhs) {
|
||||
// TODO(mips): Support this on loongson 3a4000. Currently, the main MIPS
|
||||
// CPU, Loongson 3a3000 does not support MSA(simd128), but the upcoming
|
||||
// 3a4000 support MSA.
|
||||
bailout(kSimd, "emit_i8x16_rounding_average_u");
|
||||
}
|
||||
|
||||
void LiftoffAssembler::emit_i16x8_rounding_average_u(LiftoffRegister dst,
|
||||
LiftoffRegister lhs,
|
||||
LiftoffRegister rhs) {
|
||||
// TODO(mips): Support this on loongson 3a4000. Currently, the main MIPS
|
||||
// CPU, Loongson 3a3000 does not support MSA(simd128), but the upcoming
|
||||
// 3a4000 support MSA.
|
||||
bailout(kSimd, "emit_i16x8_rounding_average_u");
|
||||
}
|
||||
|
||||
void LiftoffAssembler::StackCheck(Label* ool_code, Register limit_address) {
|
||||
TurboAssembler::Ulw(limit_address, MemOperand(limit_address));
|
||||
TurboAssembler::Branch(ool_code, ule, sp, Operand(limit_address));
|
||||
|
@ -1792,6 +1792,24 @@ void LiftoffAssembler::emit_f64x2_replace_lane(LiftoffRegister dst,
|
||||
bailout(kSimd, "emit_f64x2_replace_lane");
|
||||
}
|
||||
|
||||
void LiftoffAssembler::emit_i8x16_rounding_average_u(LiftoffRegister dst,
|
||||
LiftoffRegister lhs,
|
||||
LiftoffRegister rhs) {
|
||||
// TODO(mips): Support this on loongson 3a4000. Currently, the main MIPS
|
||||
// CPU, Loongson 3a3000 does not support MSA(simd128), but the upcoming
|
||||
// 3a4000 support MSA.
|
||||
bailout(kSimd, "emit_i8x16_rounding_average_u");
|
||||
}
|
||||
|
||||
void LiftoffAssembler::emit_i16x8_rounding_average_u(LiftoffRegister dst,
|
||||
LiftoffRegister lhs,
|
||||
LiftoffRegister rhs) {
|
||||
// TODO(mips): Support this on loongson 3a4000. Currently, the main MIPS
|
||||
// CPU, Loongson 3a3000 does not support MSA(simd128), but the upcoming
|
||||
// 3a4000 support MSA.
|
||||
bailout(kSimd, "emit_i16x8_rounding_average_u");
|
||||
}
|
||||
|
||||
void LiftoffAssembler::StackCheck(Label* ool_code, Register limit_address) {
|
||||
TurboAssembler::Uld(limit_address, MemOperand(limit_address));
|
||||
TurboAssembler::Branch(ool_code, ule, sp, Operand(limit_address));
|
||||
|
Loading…
Reference in New Issue
Block a user