Skip to content

Commit dc94ff4

Browse files
authored
Avoid using built-in function in _mm_madd_epi16. NFC (#17848)
Commit llvm/llvm-project@502f540 finalized the wasm_simd128.h intrinsics header, so using the built-in equivalent of wasm_i32x4_dot_i16x8 is not needed here.
1 parent cec0148 commit dc94ff4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

site/source/docs/porting/simd.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ The following table highlights the availability and expected performance of diff
557557
* - _mm_loadu_si16
558558
- ❌ emulated with const+scalar load+replace lane
559559
* - _mm_madd_epi16
560-
- ✅ wasm_dot_s_i32x4_i16x8
560+
- ✅ wasm_i32x4_dot_i16x8
561561
* - _mm_maskmoveu_si128
562562
- ❌ scalarized
563563
* - _mm_max_epi16

system/include/compat/emmintrin.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ _mm_avg_epu16(__m128i __a, __m128i __b)
648648
static __inline__ __m128i __attribute__((__always_inline__, __nodebug__))
649649
_mm_madd_epi16(__m128i __a, __m128i __b)
650650
{
651-
return (__m128i)__builtin_wasm_dot_s_i32x4_i16x8((__i16x8)__a, (__i16x8)__b);
651+
return (__m128i)wasm_i32x4_dot_i16x8((v128_t)__a, (v128_t)__b);
652652
}
653653

654654
static __inline__ __m128i __attribute__((__always_inline__, __nodebug__))

0 commit comments

Comments
 (0)