[mips][wasm-simd][liftoff] Implement i64x2 shr_s and shr_u
Port 99a361eec6
https://crrev.com/c/2198456
Change-Id: I5a1b4085de9e41ce122eef12aaaeb3c3c038d27c
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2203369
Reviewed-by: Clemens Backes <clemensb@chromium.org>
Commit-Queue: Zhao Jiazhong <zhaojiazhong-hf@loongson.cn>
Cr-Commit-Position: refs/heads/master@{#67819}
This commit is contained in:
parent
d5f7622136
commit
c47e1b217d
@ -1959,6 +1959,28 @@ void LiftoffAssembler::emit_i64x2_shli(LiftoffRegister dst, LiftoffRegister lhs,
|
||||
bailout(kSimd, "emit_i64x2_shli");
|
||||
}
|
||||
|
||||
void LiftoffAssembler::emit_i64x2_shr_s(LiftoffRegister dst,
|
||||
LiftoffRegister lhs,
|
||||
LiftoffRegister rhs) {
|
||||
bailout(kSimd, "emit_i64x2_shr_s");
|
||||
}
|
||||
|
||||
void LiftoffAssembler::emit_i64x2_shri_s(LiftoffRegister dst,
|
||||
LiftoffRegister lhs, int32_t rhs) {
|
||||
bailout(kSimd, "emit_i64x2_shri_s");
|
||||
}
|
||||
|
||||
void LiftoffAssembler::emit_i64x2_shr_u(LiftoffRegister dst,
|
||||
LiftoffRegister lhs,
|
||||
LiftoffRegister rhs) {
|
||||
bailout(kSimd, "emit_i64x2_shr_u");
|
||||
}
|
||||
|
||||
void LiftoffAssembler::emit_i64x2_shri_u(LiftoffRegister dst,
|
||||
LiftoffRegister lhs, int32_t rhs) {
|
||||
bailout(kSimd, "emit_i64x2_shri_u");
|
||||
}
|
||||
|
||||
void LiftoffAssembler::emit_i64x2_add(LiftoffRegister dst, LiftoffRegister lhs,
|
||||
LiftoffRegister rhs) {
|
||||
bailout(kSimd, "emit_i64x2_add");
|
||||
|
@ -1794,6 +1794,30 @@ void LiftoffAssembler::emit_i64x2_shli(LiftoffRegister dst, LiftoffRegister lhs,
|
||||
slli_d(dst.fp().toW(), lhs.fp().toW(), rhs & 63);
|
||||
}
|
||||
|
||||
void LiftoffAssembler::emit_i64x2_shr_s(LiftoffRegister dst,
|
||||
LiftoffRegister lhs,
|
||||
LiftoffRegister rhs) {
|
||||
fill_d(kSimd128ScratchReg, rhs.gp());
|
||||
sra_d(dst.fp().toW(), lhs.fp().toW(), kSimd128ScratchReg);
|
||||
}
|
||||
|
||||
void LiftoffAssembler::emit_i64x2_shri_s(LiftoffRegister dst,
|
||||
LiftoffRegister lhs, int32_t rhs) {
|
||||
srai_d(dst.fp().toW(), lhs.fp().toW(), rhs & 63);
|
||||
}
|
||||
|
||||
void LiftoffAssembler::emit_i64x2_shr_u(LiftoffRegister dst,
|
||||
LiftoffRegister lhs,
|
||||
LiftoffRegister rhs) {
|
||||
fill_d(kSimd128ScratchReg, rhs.gp());
|
||||
srl_d(dst.fp().toW(), lhs.fp().toW(), kSimd128ScratchReg);
|
||||
}
|
||||
|
||||
void LiftoffAssembler::emit_i64x2_shri_u(LiftoffRegister dst,
|
||||
LiftoffRegister lhs, int32_t rhs) {
|
||||
srli_d(dst.fp().toW(), lhs.fp().toW(), rhs & 63);
|
||||
}
|
||||
|
||||
void LiftoffAssembler::emit_i64x2_add(LiftoffRegister dst, LiftoffRegister lhs,
|
||||
LiftoffRegister rhs) {
|
||||
addv_d(dst.fp().toW(), lhs.fp().toW(), rhs.fp().toW());
|
||||
|
Loading…
Reference in New Issue
Block a user