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

S390: fix vector multiple even/odd on the simulator

input needs to be casted into the result type before
doing the multiplication.

Change-Id: I797e8d3586678508f35c51d7890ad0d31fc7f1ea
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2815559Reviewed-by: 's avatarJunliang Yan <junyan@redhat.com>
Commit-Queue: Milad Fa <mfarazma@redhat.com>
Cr-Commit-Position: refs/heads/master@{#73867}
parent 0ab666a5
...@@ -3273,8 +3273,10 @@ EVALUATE(VML) { ...@@ -3273,8 +3273,10 @@ EVALUATE(VML) {
j = lane_size; \ j = lane_size; \
} \ } \
for (; j < kSimd128Size; i += 2, j += lane_size * 2, k++) { \ for (; j < kSimd128Size; i += 2, j += lane_size * 2, k++) { \
input_type src0 = get_simd_register_by_lane<input_type>(r2, i); \ result_type src0 = static_cast<result_type>( \
input_type src1 = get_simd_register_by_lane<input_type>(r3, i); \ get_simd_register_by_lane<input_type>(r2, i)); \
result_type src1 = static_cast<result_type>( \
get_simd_register_by_lane<input_type>(r3, i)); \
set_simd_register_by_lane<result_type>(r1, k, src0 * src1); \ set_simd_register_by_lane<result_type>(r1, k, src0 * src1); \
} }
#define VECTOR_MULTIPLY_EVEN_ODD(r1, r2, r3, is_odd, sign) \ #define VECTOR_MULTIPLY_EVEN_ODD(r1, r2, r3, is_odd, sign) \
......
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