Skip to content

Commit

Permalink
bugfix: three unsigned narrow op should be interpreted as signed as …
Browse files Browse the repository at this point in the history
…the simd proposal
  • Loading branch information
liutao-liu committed Dec 16, 2023
1 parent 73914ca commit 327450a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/iwasm/compilation/simd/simd_conversions.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ simd_integer_narrow_common(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,

/* sat */
if (!(vec1 = simd_saturate(comp_ctx, func_ctx, e_sat_i16x8, vec1, min, max,
is_signed))
true))
|| !(vec2 = simd_saturate(comp_ctx, func_ctx, e_sat_i16x8, vec2, min,
max, is_signed))) {
max, true))) {
return false;
}

Expand Down

0 comments on commit 327450a

Please sign in to comment.