[PATCH] D81757: [WebAssembly] Add intrinsic for i64x2.mul
Thomas Lively via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 12 12:35:22 PDT 2020
tlively created this revision.
tlively added a reviewer: aheejin.
Herald added subscribers: cfe-commits, sunfish, jgravelle-google, sbc100, dschuff.
Herald added a project: clang.
This instruction was implemented in 3181273be7 <https://reviews.llvm.org/rG3181273be73ac798c3d5b9081dd53d87a31c91b3>, but that commit did
not add an intrinsic for it.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D81757
Files:
clang/lib/Headers/wasm_simd128.h
Index: clang/lib/Headers/wasm_simd128.h
===================================================================
--- clang/lib/Headers/wasm_simd128.h
+++ clang/lib/Headers/wasm_simd128.h
@@ -864,6 +864,11 @@
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);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81757.270490.patch
Type: text/x-patch
Size: 592 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200612/714c0858/attachment.bin>
More information about the cfe-commits
mailing list