Commit b54b011e authored by Milad Fa's avatar Milad Fa Committed by Commit Bot

[wasm-simd][scalar-lowering] Fix lowering on kS128Const

kFloat32x4 needs to handle the endianness similar to kInt32x4.

Change-Id: Iaab2d6785d56c06fd00654bff174900550db9e47
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2411628Reviewed-by: 's avatarZhi An Ng <zhin@chromium.org>
Commit-Queue: Milad Farazmand <mfarazma@redhat.com>
Cr-Commit-Position: refs/heads/master@{#69897}
parent 0b36f190
......@@ -1239,7 +1239,8 @@ void SimdScalarLowering::LowerNode(Node* node) {
float val[kNumLanes32];
memcpy(val, params.data(), kSimd128Size);
for (int i = 0; i < num_lanes; ++i) {
rep_node[i] = mcgraph_->Float32Constant(val[i]);
rep_node[i] = mcgraph_->Float32Constant(
base::ReadLittleEndianValue<float>(&val[i]));
}
break;
}
......
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