You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
INSTRUMENT=0
clang -O3 --target=wasm32 -nostdlib -fno-builtin -Iinclude -Isrc -DINSTRUMENT=0 -msimd128 -mbulk-memory -mrelaxed-simd -Wl,--no-entry -Wl,-z,stack-size=8192 -o src/jit/stubs/semifloat.wasm src/jit/stubs/semifloat.c
clang -march=native -fno-lto -Iinclude -Isrc -DINSTRUMENT=0 -O3 -c -o tests/semifloat/semifloat_stub.o src/jit/stubs/semifloat.c
src/jit/stubs/semifloat.c:165:9: warning: implicit declaration of function 'wasm_f64x2_relaxed_madd' is invalid in C99 [-Wimplicit-function-declaration]
return wasm_f64x2_relaxed_madd(wasm_f64x2_neg(c), b, a); // ab - c
^
src/jit/stubs/semifloat.c:165:9: error: returning 'int' from a function with incompatible result type 'v128_t' (vector of 4 'int32_t' values)
return wasm_f64x2_relaxed_madd(wasm_f64x2_neg(c), b, a); // ab - c
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
make: *** [Makefile:67: src/jit/stubs/semifloat.wasm] Error 1
make: *** Waiting for unfinished jobs....
static inline v128_t mul_residue_fma(v128_t a, v128_t b, v128_t c) {
#ifdef wasm_f64x2_relaxed_madd
// Use the intrinsic if available
return wasm_f64x2_relaxed_madd(wasm_f64x2_neg(c), b, a); // a*b - c
#else
// Fallback if the intrinsic is not available
v128_t neg_c = wasm_f64x2_neg(c); // -c
v128_t mul_ab = wasm_f64x2_mul(a, b); // a * b
return wasm_f64x2_add(mul_ab, neg_c); // (a * b) + (-c)
#endif
}
bun scripts/build.ts编译OK
The text was updated successfully, but these errors were encountered:
INSTRUMENT=0
clang -O3 --target=wasm32 -nostdlib -fno-builtin -Iinclude -Isrc -DINSTRUMENT=0 -msimd128 -mbulk-memory -mrelaxed-simd -Wl,--no-entry -Wl,-z,stack-size=8192 -o src/jit/stubs/semifloat.wasm src/jit/stubs/semifloat.c
clang -march=native -fno-lto -Iinclude -Isrc -DINSTRUMENT=0 -O3 -c -o tests/semifloat/semifloat_stub.o src/jit/stubs/semifloat.c
src/jit/stubs/semifloat.c:165:9: warning: implicit declaration of function 'wasm_f64x2_relaxed_madd' is invalid in C99 [-Wimplicit-function-declaration]
return wasm_f64x2_relaxed_madd(wasm_f64x2_neg(c), b, a); // ab - c
^
src/jit/stubs/semifloat.c:165:9: error: returning 'int' from a function with incompatible result type 'v128_t' (vector of 4 'int32_t' values)
return wasm_f64x2_relaxed_madd(wasm_f64x2_neg(c), b, a); // ab - c
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
make: *** [Makefile:67: src/jit/stubs/semifloat.wasm] Error 1
make: *** Waiting for unfinished jobs....
static inline v128_t mul_residue_fma(v128_t a, v128_t b, v128_t c) {
#ifdef wasm_f64x2_relaxed_madd
// Use the intrinsic if available
return wasm_f64x2_relaxed_madd(wasm_f64x2_neg(c), b, a); // a*b - c
#else
// Fallback if the intrinsic is not available
v128_t neg_c = wasm_f64x2_neg(c); // -c
v128_t mul_ab = wasm_f64x2_mul(a, b); // a * b
return wasm_f64x2_add(mul_ab, neg_c); // (a * b) + (-c)
#endif
}
bun scripts/build.ts编译OK
The text was updated successfully, but these errors were encountered: