[WebAssembly] Add intrinsic for i64x2.mul

Summary:
This instruction was implemented in 3181273be7, but that commit did
not add an intrinsic for it.

Reviewers: aheejin

Subscribers: dschuff, sbc100, jgravelle-google, sunfish, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D81757
This commit is contained in:
Thomas Lively 2020-06-12 14:08:18 -07:00
parent b422fe7d62
commit d2c394e74f

View File

@ -864,6 +864,11 @@ static __inline__ v128_t __DEFAULT_FN_ATTRS wasm_i64x2_sub(v128_t __a,
return (v128_t)((__u64x2)__a - (__u64x2)__b);
}
static __inline__ v128_t __DEFAULT_FN_ATTRS wasm_i64x2_mul(v128_t __a,
v128_t __b) {
return (v128_t)((__u64x2)__a * (__u64x2)__b);
}
static __inline__ v128_t __DEFAULT_FN_ATTRS wasm_f32x4_abs(v128_t __a) {
return (v128_t)__builtin_wasm_abs_f32x4((__f32x4)__a);
}