Replace deprecated wasm_simd128.h intrinsics with new versions
The final version of wasm_simd128.h renamed and deprecated some of the
intrinsics used in XNNPACK WAsm SIMD microkernels. Update them to the new names
of these intrinsics.
PiperOrigin-RevId: 382364703
diff --git a/src/f32-gemm/MRx2c4-wasmsimd.c.in b/src/f32-gemm/MRx2c4-wasmsimd.c.in
index a484f82..4b38adc 100644
--- a/src/f32-gemm/MRx2c4-wasmsimd.c.in
+++ b/src/f32-gemm/MRx2c4-wasmsimd.c.in
@@ -59,8 +59,8 @@
}
$if ACTIVATION == "MINMAX" and not X86:
- const v128_t vmin = wasm_v32x4_load_splat(¶ms->scalar.min);
- const v128_t vmax = wasm_v32x4_load_splat(¶ms->scalar.max);
+ const v128_t vmin = wasm_v128_load32_splat(¶ms->scalar.min);
+ const v128_t vmax = wasm_v128_load32_splat(¶ms->scalar.max);
do {
v128_t vacc0x0c4 = wasm_f32x4_replace_lane(wasm_f32x4_splat(0.0f), 0, w[0]);
$for N in range(1, NR):
@@ -116,7 +116,7 @@
$if ACTIVATION == "MINMAX":
$if X86:
- const v128_t vmin = wasm_v32x4_load_splat(¶ms->scalar.min);
+ const v128_t vmin = wasm_v128_load32_splat(¶ms->scalar.min);
$for M in range(0, MR, 2):
vacc${M}${M+1}x01 = wasm_v128_bitselect(vmin, vacc${M}${M+1}x01, wasm_f32x4_lt(vacc${M}${M+1}x01, vmin));
$else:
@@ -124,7 +124,7 @@
vacc${M}${M+1}x01 = wasm_f32x4_max(vacc${M}${M+1}x01, vmin);
$if X86:
- const v128_t vmax = wasm_v32x4_load_splat(¶ms->scalar.max);
+ const v128_t vmax = wasm_v128_load32_splat(¶ms->scalar.max);
$for M in range(0, MR, 2):
vacc${M}${M+1}x01 = wasm_v128_bitselect(vacc${M}${M+1}x01, vmax, wasm_f32x4_le(vacc${M}${M+1}x01, vmax));
$else: