Commit 6934107e authored by Milad Fa's avatar Milad Fa Committed by V8 LUCI CQ

PPC [liftoff]: Implement simd load and store

Change-Id: Ia45248a3d8566dbb4f2702a8b1ea6959157dc76b
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3776949
Commit-Queue: Milad Farazmand <mfarazma@redhat.com>
Reviewed-by: 's avatarJunliang Yan <junyan@redhat.com>
Cr-Commit-Position: refs/heads/main@{#81857}
parent 607ad422
......@@ -433,7 +433,11 @@ void LiftoffAssembler::Load(LiftoffRegister dst, Register src_addr,
}
break;
case LoadType::kS128Load:
bailout(kUnsupportedArchitecture, "SIMD");
if (is_load_mem) {
LoadSimd128LE(dst.fp().toSimd(), src_op, r0);
} else {
LoadSimd128(dst.fp().toSimd(), src_op, r0);
}
break;
default:
UNREACHABLE();
......@@ -492,7 +496,11 @@ void LiftoffAssembler::Store(Register dst_addr, Register offset_reg,
}
break;
case StoreType::kS128Store: {
bailout(kUnsupportedArchitecture, "SIMD");
if (is_store_mem) {
StoreSimd128LE(src.fp().toSimd(), dst_op, r0, kScratchSimd128Reg);
} else {
StoreSimd128(src.fp().toSimd(), dst_op, r0);
}
break;
}
default:
......
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